|
-
May 13th, 2006, 03:39 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Program compiled but does not run
CIAO
My programs are compiled but do not run for example if I write the program
class Abbas
{
public static void main(String args[])
{
System.out.println("Abbas Haider");
}
}
it is compiled using javac, it even catches the errors if I make some mistake in the syntax, but when it is compiled without errors it does not run. It gives me this message:
Exception in thread "main" java.lang.NoClassDefFoundError: Abbas
Plz solve this and thanks in advance
A. Haider
-
May 14th, 2006, 02:45 AM
#2
-
May 14th, 2006, 07:02 AM
#3
Frenzied Member
Re: Program compiled but does not run
Definitely a problem with environment variables.
-
May 16th, 2006, 02:32 PM
#4
Thread Starter
Hyperactive Member
Re: Program compiled but does not run
Problem still persist
I would like to mention one thing I am using jdk1.3
Also Applet files do not run but are compiled
Thanks
-
May 17th, 2006, 01:17 AM
#5
-
May 17th, 2006, 05:12 AM
#6
Frenzied Member
Re: Program compiled but does not run
If the problem still persits then you still haven't set your enviroment variables correctly.
-
May 25th, 2006, 10:37 AM
#7
Thread Starter
Hyperactive Member
Re: Program compiled but does not run
As for the environmental variables I cannot figure out whats wrong. Should I have to install my OS again. I worked with the instructions u folks gave for environmental variables but it didnt worked out. I am thinking to reinstall my OS.
I m using win xp
-
May 25th, 2006, 05:22 PM
#8
Re: Program compiled but does not run
 Originally Posted by Abbas Haider
As for the environmental variables I cannot figure out whats wrong. Should I have to install my OS again. I worked with the instructions u folks gave for environmental variables but it didnt worked out. I am thinking to reinstall my OS.
I m using win xp
This won't solve anything
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
May 26th, 2006, 05:13 AM
#9
Frenzied Member
Re: Program compiled but does not run
 Originally Posted by Abbas Haider
As for the environmental variables I cannot figure out whats wrong. Should I have to install my OS again. I worked with the instructions u folks gave for environmental variables but it didnt worked out. I am thinking to reinstall my OS.
I m using win xp
What's your classpath look like? As CompJy said, reinstalling won't do anything...It will simply reset your variables and you'll have to set them again.
-
May 28th, 2006, 06:53 AM
#10
Re: Program compiled but does not run
How are you running the program? Do you have a CLASSPATH environment variable set? If so, what is its value?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
May 28th, 2006, 07:41 AM
#11
Re: Program compiled but does not run
15 days just to get java to work!???
I wonder how long will it take to run Oracle
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 2nd, 2006, 05:33 AM
#12
Thread Starter
Hyperactive Member
Re: Program compiled but does not run
Hahaha
ORACLE was not a problem even the java is not a problem at least I know I am compiling my programs correctly only I am unable to see the output I have worked on JAVA as well as ORACLE three yrs ago on other systems
its only my Machine that stinks
-
Jun 2nd, 2006, 05:41 AM
#13
Re: Program compiled but does not run
I suggest you try an IDE to get your files running.
try NetBeans or Eclipse. Those are the good ones I know
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 3rd, 2006, 08:38 AM
#14
Thread Starter
Hyperactive Member
Re: Program compiled but does not run
-
Jun 4th, 2006, 11:36 AM
#15
Re: Program compiled but does not run
Try those steps, it may solve your problem
1- Goto the "java control panel" in control panel
2- goto the "Java" tab"
3- click on "view" under "Java Application Runtime Settings"
4- make sure both user and system have values set and a vaild path.
if any of them doesn't, then Add one or find it
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jun 17th, 2006, 07:11 PM
#16
Re: Program compiled but does not run
run java as exe files.
This download is a very wonderful tool for all people who can compile java but can't get it to run properly
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 8th, 2007, 12:29 PM
#17
Thread Starter
Hyperactive Member
-
Mar 8th, 2007, 01:05 PM
#18
Re: [RESOLVED] Program compiled but does not run
J# is an entirely different language than Java, even if it is aimed at compatibility. You definitely won't be able to run anything J#-compiled as an applet or JSP.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|