Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Espanol
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 20th, 2007, 01:46 PM
Registered User
 
Join Date: Mar 2007
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


 
Old March 26th, 2007, 11:14 PM
Friend of Wrox
 
Join Date: Mar 2007
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
 
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.





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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.