Results 1 to 2 of 2
Hi all Later my java worked fine and I have possibility to compile and run through console java programs. Thereafter I need to install new jdk, android sdk and additional ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-27-2012 #1
- Join Date
- Oct 2012
Problem with java configurations
Later my java worked fine and I have possibility to compile and run through console java programs. Thereafter I need to install new jdk, android sdk and additional jre of lower version for specific project. Well now when I try to run java programs through console I have an error (problems with classpath as oracle docs said):
Exception in thread "main" java.lang.NoClassDefFoundError: ...
setenv SDK /home/zest/Android/android-sdk-linux setenv PATH $SDK/platform-tools:$SDK/tools:/usr/local/bin:$PATH setenv PATH /usr/java/jdk1.7.0_05/bin/:$PATH
Last edited by zestu; 10-27-2012 at 07:59 PM.
- 10-28-2012 #2
- Join Date
- Apr 2009
- I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
You can have multiple versions of java (jdk/jre/j2ee) on your system, but which is used by each application may be determined by various environment variables. In your case, I think the easiest method is to create a "wrapper" script that sets the path and other environment variables to run the old program, so it can be run wtihout problems. This is not an uncommon problem. The CLASSPATH environment variable is the least of your issues, IMO.Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!