Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Espanol
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Espanol section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 20th, 2007, 01:46 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JDK 5 (help please)

hi! this is my problem (i'm new on this) :)

i've JDK 5.11 installed already on my PC

and i did this to config. ->

1. i've went to My Computer>Prop..>advance opt..>Enviroment. var.>
and set the PATH in "C:\Develop\Java\jdk1.5.0_02\bin;%path%" that's where JDK has been installed
2. in System Variables.. CLASSPATH "C:\Develop\Java\jdk1.5.0_02\lib\tools.jar"

that's alright?

i use JCreator and works fine

my problem is when i try to use command line, where i can compiling but not execute

i mean
C:\javac MyProgram.java -> "works properly.."

but
C:\java MyProgram -> doesn't work says


Exception in thread "main" java.lang.NoClassDefFoundError: first

what kind of error is that and what can i do?

thanks,

chicos ayuda por favor


  #2 (permalink)  
Old March 26th, 2007, 11:14 PM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

Check whether you've any package structure for your class, if Yes the check whether the class file is in class path, you've to use javac -d option to compile and place the class file in correct directory.

Regards,
Rakesh
  #3 (permalink)  
Old January 5th, 2008, 04:46 AM
jomet
Guest
 
Posts: n/a
Default

Hi,

otherwise add '.;' to CLASSPATH
ie. CLASSPATH ".;C:\Develop\Java\jdk1.5.0_02\lib\tools.jar"

regds

jomet.
---------------------------------------------
Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
JDK, newbie questions =D Ixidor Java Basics 5 March 12th, 2006 04:53 AM
JDK 1.5 Setup Problem treehh JSP Basics 1 June 22nd, 2005 11:24 PM
JDK version confusion jlara BOOK: Beginning Java 2, JDK 5 Edition 1 May 18th, 2005 09:12 AM
Having Problem with Tomcat and/or JDK evenpar JSP Basics 5 July 29th, 2004 10:24 AM
Which editor and JDK? stratusc BOOK: Beginning Java 2 1 July 15th, 2004 05:51 AM



All times are GMT -4. The time now is 12:16 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.