FRESHERSHOME![]() |
This is a discussion on hey how to run java program in suse linux? within the JAVA forums, part of the Languages category; i m able to compile the program but when i m running it getting the error message main" java.lang.NoClassDefFoundError...
| |||||||
| Notices |
| JAVA JAVA Discussion Forum, Jave Related help |
![]() |
| | Thread Tools | Display Modes |
|
#1
| |||
| |||
| i m able to compile the program but when i m running it getting the error message main" java.lang.NoClassDefFoundError
__________________ Powered by Yahoo! |
|
#2
| |||
| |||
| first CD into your folder where the javaProgram.class is: >$ cd ~/home/danny-desktop/java/javaprograms/ You can also drag the file icon into the Console to get your path, but for cd you need to take off the last part >$ cd ~/home/danny-desktop/java/javaprograms/myApp.class (take off the myApp.class, then hit return) then you would: >$ java myApp NO file extension Your env variable should have for CLASSPATH ./ the ./ tells the java JRE to look inside the focused folder first for any class files. If you have other folders with class files you put them in also with a semi-colon to separate the paths ./;home/danny-desktop/java/jdk6.1.1/bin; You can also java (and the path to ) every time, but I think doing cd is better. Because you can compile, I would say your PATH variable -- that finds the JRE -- is OK.
__________________ Powered by Yahoo! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Sitemap
Jobs by Location: Advertising and Marketing Jobs - IT Software Jobs - Walk-in Jobs - BPO Jobs - Government Jobs - Sales / BD Jobs - Tele Communication Jobs App Programming - Network Admin
Jobs By Location: Jobs in Bangalore - Jobs In India - Jobs in Delhi - Jobs in Hyderabad - Jobs in Kochi - Jobs in Mumbai - Jobs in Trivandrum - Jobs in pune - Jobs in Jonida - Jobs in Chennai - Jobs in Coimbator
Jobs Type: Full Time Jobs - Part Time Jobs
Latest Jobs - Accounting Jobs - Engineering Jobs - IT Jobs - Walkins - How to Face Interview - HR Round Tips - Career Info - Guide For Freshers - Apply for Jobs - Future Studies - Jobs Forums - Freshers IT Software Salary Details