0
votes
2answers
2k views

Error: Could not find or load main class(Java)

I am using java in ubuntu machine. I can run java program from my eclipse. But I have some work that that I have to perform from command prompt. I could compile java program using javac ...
0
votes
0answers
69 views

Installing jdk 1.7.0 java -version not working

I have installed java jdk, following the steps as described here but the problem is when i do which jav it gives me the output /usr/bin/java but when i do java -version it says bash: ...
1
vote
2answers
102 views

How to set up environmental variable in Ubuntu?

I have never used Ubuntu before. How do I go about setting an environmental variable that points to JDK? I installed it on my Desktop. I typed in "EXPORT JAVA_HOME=~/Desktop/jdk" in the command prompt ...
0
votes
3answers
757 views

Ubuntu 10.10 -bash: java: command not found

I just bought fresh VPS with Ubuntu 10.10. I following this guide http://l2jserver.com/wiki/Setup_Server_-_Ubuntu for creating Lineage2 server, but this doesn't matter. I try to use command java ...
1
vote
1answer
1k views

Changing Java from OpenJDK to SunJava

I want to change OpenJDK to SunJava in my ubuntu linux desktop , i have downloaded the "jdk-7.tar.gz" from sun's website, but there problem is how to make the system to use the newly downloaded java ? ...
2
votes
1answer
594 views

Java Development Kit (JDK) from ftp?

I need to download specific JDK version but from console in Linux. I have not lynx/elinks etc linstalled. Where can i download Java Development Kit (JDK) from ftp ?
1
vote
1answer
718 views

how to configure tomcat6 for ubuntu

i have installed Apache Tomcat6 for Ubuntu 9.04 recenty. But it seems that some API's like servelet and http are not included although I have installed OpenJDK 1.6. Somebody advised me to set ...