A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Java
»
Beginning Java
Author
java in linux
sanket karkare
Greenhorn
Joined: Jan 12, 2009
Posts: 10
posted
Mar 01, 2009 02:27:57
0
when i run the command
java
/home/abc/.config/autostart/Test4
i get
Exception in thread "main"
java.lang.NoClassDefFoundError
: /home/abc//config/autostart/Test4
I think the problem is because a dot represents current directory in java and a hidden file in linux.
So how to resolve the ambiguity.
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
9
posted
Mar 01, 2009 03:24:25
0
The "java" command takes as parameter a
class name
, not a
file name
. I think you want something like this (assuming that "Test4" is the class name, and it's not in a package).
java -classpath /home/abc/config/autostart Test4
Android apps
–
ImageJ plugins
–
Java web charts
sanket karkare
Greenhorn
Joined: Jan 12, 2009
Posts: 10
posted
Mar 02, 2009 06:31:57
0
Thanks, your reply worked
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: java in linux
Similar Threads
Specific match rule
Hunt Exam Question
String object declaration problem
Strange exception with StrutsTestCase for JUnit
Array of zero size
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter