Programming :: Java Application Compiled Successful, But No Data Showing?
Jun 11, 2009
I am currently taking a Java class and I am not understanding it very well. I have compiled the following program, but it will not give me any data back to where I input the employee name, hours, rate. Can you look it over and tell what I am missing? I have been working on this for about 7 hours now and I have been reading and researching and just can not seem to know what is missing.
public class Employee
{
public static void main( String args[] )
[code]...
View 4 Replies
ADVERTISEMENT
Dec 12, 2010
I am debugging a project and I noticed the .so files from my installed version of this project are being used when I run the main executable. However what I want is that the modified and compiled libraries (.so files) are being used. This is for testing the software. So I don't want to install these. I tried adding the directory with the .so files in /etc/ld.so.conf and doing ldconfig. However that did not seem to work. How can I let the main executable use the modified .so? I also want to debug this using gdb, so if someone knows what I should do to get those modified .so files being used for execution.
View 5 Replies
View Related
Oct 27, 2010
I'm trying to make a java application in netbeans 6.9.1 (ubuntu 10.10) and I need to use the webcam on the system. Now I found this project: [URL] I am able to run the program and see the vid imput from the webcam using: "java -cp /usr/share/java/v4l4j.jar -Djava.library.path=/usr/lib/jni au.edu.jcu.v4l4j.examples.DeviceChooser" The problem is how to import the libaries into netbeans, there is an explanation on the site how to do it with eclipse but I don't have any experience with ecplipse and judging from what people have to say about how it works I don't want that either. I get the following error as output:
[Code]...
View 3 Replies
View Related
Jun 16, 2014
app deployment on Linux/debian and I'm using Debreate to create .deb packages which works fine. I install the software itself to /usr/bin but want to install the program's database to /home/username/myapp/ The problem is it that I don't know how to add the env variable 'username' to the target path. What is the exact syntax for this installation path?
View 3 Replies
View Related
May 14, 2010
How system call internals could be known ? I mean for example if i take the example of write system call of linux kernel, where i can find out the code of write() system call in the kernel source tree ? The problem is write() system call directly write on console.If we want to write the data on some web page then write() system call will not do that ? How to redirect out data from console to application like html/web page?
View 6 Replies
View Related
Mar 16, 2010
I'm using 8.10, but wanted to upgrade firefox to the latest version, so I downloaded the tarball from their website and compiled that. FF 3.6 works fine, but I havn't been able to get my flash or java plugins to work since.
View 5 Replies
View Related
Jul 24, 2010
I'm trying to add local sockets in my multi-threaded application in order to exchange data between threads. The only problem I got is that most of the information available on the net is related to internet oriented socket programming whileI want to perform local connections. got a thread that does the sniffing via libpcap. And I would like that thread to send each captured packet to a second thread that will analyse the packetof the thread implementations is written in separate .h file.Or maybe there is a more effective method of exchanging data between threads
View 14 Replies
View Related
Apr 30, 2011
when an application is opened or minimized the icon of that particular application is not showing up in the top bar of ubuntu 11.04...how can i see the icons in the top bar?
View 1 Replies
View Related
Apr 14, 2010
So, I have this application called Impact, it is an explicit time integration Finite Elements code written in Java...
[url]
I untar the pack, and launch the application calling a script, from within the untarred folder,
Code:
This launches a gui which allows me to setup a case, which needs some setup file, tipically some *.in and a mesh file, tipically some *.msh.
Other mode of executuion consists of calling the setup file as argument to Impact.sh script ( CLI execution mode, for g33k5 )
My problem is : I have packed the whole stuff into a Slackware .tgz, that places it in /usr/local/Impact, and placed a calling script in /usr/local/bin,
Code:
Code:
I decided to hack the ImpactGUI_OGL_linux_amd64.sh script from
Code:
Code:
no avail,
Code:
even after adding /usr/local/Impact/bin to PATH... won't go...
I can run this thing from within its directory... but I do not like messing within the directories of my applications, this is why I sent this to /usr/local, and placed a calling script in /usr/local/bin...
View 4 Replies
View Related
Mar 25, 2010
I've a problem which occurs during the boot process.I'll turn on the machine and Slackware (13) will begin loading. I'll get the "BIOS data check successful message" and then the screen will go black. Nothing happens after that. This doesn't happen every time I boot and other than that, Slackware works fine.I'm guessing it's the video card. Uname and lspci output to follow.
uname -r: 2.6.29.6-smp
lspci -vv:
00:00.0 Host bridge: Intel Corporation 82845G/GL[Brookdale-G]/GE/PE DRAM
[code]...
View 4 Replies
View Related
Apr 25, 2010
How come the program is compiled without errors but I can't run it?After writing
Code:
./program
blank line appears only.
View 5 Replies
View Related
Oct 27, 2010
Seems like I'm having a problem with libpng. I've created a simple SDL app and last night it worked perfectly. Today, I tried it out again and it gave me this error.
Code:
libpng warning: Application was compiled with png.h from libpng-1.4.3
libpng warning: Application is running with png.c from libpng-1.2.44
libpng error: Incompatible libpng version in application and library
I didn't mess with anything related to libpng and I'm not sure what the problem is. I didn't even know I had libpng-1.2.44 installed. I'm not sure if this is an SDL_image problem or libpng or if it's just my path is wrong.
View 3 Replies
View Related
Jul 27, 2009
I've compiled some code which I've given to other people, however when they try to run it they get segemtation fault. After some testing I've found if it's ran from root (where I compiled it) everything works, if I try to run from a user there's a fault.
View 3 Replies
View Related
Jun 20, 2011
Player-Stage uses .cc files. I know how to compile them. But how do I actually execute my code? There is an output file generated. There is nothing in the .cfg file or in the .world file that specifies what program to use to run the robot. Or is it not specified in the world or cfg files?
Then how to make the robot obey my compiled .cc file? If this question is silly or if I am asking stupid questions
View 5 Replies
View Related
Aug 13, 2010
Installed Fedora 13 on an old computer (Sony Vaio RX660 with a 1.8 gig P4 cpu). Downloaded java 21 bin file and as root, placed it in a folder I created: /usr/java so it would be accessible to all users.as root in terminal I did a chmod a+x to the file. Then ls -l, which showed I had full read/write with it. Finally, still root, and in terminal, I did the ./jre <etc>.bin and the package immediately unpacked and created files, but never showed me a license agreement to accept.Java, of course, does not work. What am I doing wrong
View 9 Replies
View Related
Oct 15, 2010
I am trying to install the Matlab 7.5 compiled runtime for 64-bit Linux (MCRInstaller.75.glnxa64.bin) and keep getting a "No Java Runtime Environment(JRE) was found on this system." error message.
I understand the JRE is bundled with MCRInstaller and will self-compile/install. However, I don't have admin access, could this be the source of the problem? If so, how could I fix it (not sure how to direct it to install locally without going into the source code)?
I got around this error before, but stupid me didn't write down what I did and I forgot.
View 3 Replies
View Related
Jun 16, 2011
I was trying to add a virtual PDF printer and show I installed cups-pdf. Supposedly it is supposed to list the virtual pdf printer in the System->Administration->Printing dialog when I choose Add printer.But it does not do that. All it shows is the remote printers on my file server.So, opened up a web browser and when to localhost:631 and used the cups interface to add a virtual pdf printer, but still it does not show up in the printing dialog.
View 2 Replies
View Related
Jun 6, 2011
I found that some application icons in the panel bar (at the bottom) is not shown correctly, which makes it hard to tell which application it is when I iconify that application. For example, the emacs application icon in panel bar used to be like a goat head. But now it looks like a generic icon, which I cannot tell it is an emacs application. I attached a screen shot here to show this issue.
View 8 Replies
View Related
Dec 20, 2010
There's a site where you can play classic NES games online without any installation, just need Java: nintendo8.com. But when selecting a game from the site's game list and it tries to load, I get this error:
icedteanp plugin error: Failed to run /etc/alternatives/../../bin/java. For more detail rerun "firefox -g" in a terminal window.
I then ran "firefox -g" from terminal, tried again and got this log:
ERROR: Invalid browser function table. Some functionality may be restricted.
/usr/src/packages/BUILD/icedtea6-1.9.2/plugin/icedteanp/IcedTeaNPPlugin.cc:1506: thread 0x80935c0: Error: Failed to spawn applet viewer: Failed to execute child thread "/etc/alternatives/../../bin/java" (No such file or directory)
I have Java up to date from its repository.
View 8 Replies
View Related
Jan 18, 2011
I just installed Ubuntu 10.10 last evening and all has been going well. Lucid didn't work out for me, so I used other distros. 10.10 fixed all issues except one thing. This is a need for me; e-courses I take require that I use Elluminate Live, a Java-based conference software. It runs flawlessly on every distro except Ubuntu. I had to use another PC running a different distro in order to get to a class. I really don't want to do that all the time. I thought it may be OpenJDK, but I found that Sun Java was installed and in use (I installed the extras while installing). I tried OpenJDK (worth a shot eh?) and the exact issue persists. All other programs have perfect audio.
View 2 Replies
View Related
Feb 2, 2011
We have an in-house developed Java application deployed on Red Hat Enterprise version 6.0, on an IBM hardware X3630 N3 model 64-bit server with 6 core processors. Apparently, when the application is running, it is picking up only 2 processes, at random. Hence, the load is not being distributed equally and occupied processors are showing 100% utilisation. How to resolve this so that all 6 processors are being utilised for proper load sharing.
View 1 Replies
View Related
Jun 27, 2010
Ok I just downloaded this program called Phex, it is a really cool program and i get it to run, but only from command line. I downloaded this program and its already compiled and works fine but i can only launch it from a command line by typing "java -jar phex.jar" I have created launchers before and they have worked, but this one just doesn't work. I have all permissions on the directory and the files, but how to create a launcher for this file.
View 8 Replies
View Related
Feb 13, 2011
Well I want install Picasa on ubuntu. I downloaded the deb file and installed it and picasa is also showing in application-graphics, but when i click it nothing happens. And when I right click any image there is no option for open with picasa. And also in ubuntu software center when I searched for picasa in installed program to remove it I found nothing. I cant figure it out how to do this. So as you can see picasa is showing as it is installed but nothing happens.
View 3 Replies
View Related
Oct 6, 2010
I"m running 10.04 on a netbook. I switched my Java look and feel to Nimbus and now my java application opens with most of the buttons and window content missing. The main menu is there, but otherwise the main form is mostly blank. If I restart the application (not my computer) 2-3 times, the problem is resolved until the next time I have to launch the java app. I did not see this issue before changing the look & feel setting for Java. But the GTK l&F doesn't work for other reasons, so I was forced to make a change.
I'm running compiz and I know the blank windows in Java apps was a common problem a while back. I'm not sure if what I'm seeing is related to that old problem or is something different.
View 2 Replies
View Related
Jun 11, 2009
I am using read() in c++ to get data from a serial port. However, if no data is available on the serial port the function blocks until dta arrives.Example code:
//------------------------------------------------------------
char m_readBuffer[255] = {0};
char* p_curChar = m_readBuffer;
[code]...
View 1 Replies
View Related
Feb 20, 2010
I got Ubuntu 9.10 running very well. ever since this morning when i booted i have that weird Panel on the desktop towards the left. It is showing basically the Application menu. I dont know why? I know i did not change anything. Also since this morning my right klick on the desktop nothing happen either? i dont want that on the Desktop!
View 6 Replies
View Related
Feb 4, 2016
i cannot seem to find a proper way to make Java my default application to open .jar files. I just made a new Debian 8.3 install on my laptop HP Pavilion G6 and the default application for opening .jar files is the Archive Manager. But when i go to "Open with.." section on right-clicking the .jar file, i get no JRE or JDK option to choose. I just installed the openjdk 7. I can manually run them from the bash, but it would be much more convenient if i just double-clicked it. Here is what i get when i run several commands in the bash :
1) which java ->Code: Select allĀ /usr/lib/jvm/java-7-openjdk-amd64/bin/java
2) java -version -> Code: Select alljava version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-1~deb8u1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
3) echo $PATH: Code: Select all/usr/lib/jvm/java-7-openjdk-amd64/bin:/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin: /usr/local/ sbin:/usr/local/bin:/ usr/ sbin:/usr/bin:/ sbin:/bin
4) javac -version : Code: Select alljavac 1.7.0_95
View 4 Replies
View Related
Dec 8, 2010
I have these "out of memory" issues with fedora 13 64bit. previously we had centos5, the same environment in terms of programs used, nevr experienced these problems. the issues are for instance a java application already started stops suddenly, or won't even start.
example from tomcat stop:
[code]...
The one thing i don't understand about these numbers is where it goes all that used memory. i only listed the top 40 tasks out of 200 in order of physical ram used, can it be that even if it "sees" 5gb it cannot use it all, just like say windows7 and usable memory? (I recently troubleshooted that one, where out of 12gb w7 reported 8gb usable, I solved that by reverting the cpu overclocking.)
View 7 Replies
View Related
Jul 25, 2011
When I run a java application (minecraft) the computer occasionally freezes. I'm not sure which version of Java I have. The online java app for telling you which version I have says that I have an old version. The command line says I have an up to date version. If I need to update Java Sun , how do I do it ? I followed the instructions once and didn't work.
View 1 Replies
View Related
May 9, 2010
I have some data files that should be distributed with my program. Using dist_pkgdata_DATA in Makefile.am, I get these files installed to /usr/local/data/share/package-name. The problem is that data is read-only, and my program needs to modify it. Playing with dist_sharedstate_DATA, dist_localstate_DATA, dist-data_DATA varibles, I got different installation directories, like /usr/local/com, usr/local/var, but data is always read-only.
How can I distribute modifiable data files with my package? I need some common directory for all users, or maybe local data in a user directory.
View 1 Replies
View Related