Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 22nd, 2005, 02:42 PM
Registered User
 
Join Date: Jun 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default JDK 1.5 Setup Problem

Hi,

Running WinXP SP2. It compiles, but cannot run the .class file. & gives me an exception of java.lang.NoClassDefFoundError:
ExampleProgram/class

Here's my java file:
--------------------
class ExampleProgram {
  public static void main(String[] args){
    System.out.println("I'm a Simple Program");
  }
}
--------------------
Concerning system variables:
CLASSPATH=C:\Program Files\Java\jdk1.5.0_03\lib
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_03PATH=%SystemRoot%\system32;% SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Java\jdk1.5.0_03\bin;"

Any help is greatly appreciated.

Wondering why Sun is making it so difficult to use on Windows Environment???
Reply With Quote
  #2 (permalink)  
Old June 22nd, 2005, 11:24 PM
Authorized User
 
Join Date: Apr 2005
Location: Arequipa, Arequipa, Peru.
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default

JHELLo
(sorry for my grammar)
i have the same WINXP installer with SP2 incorporated

First, i think that is "public class NameClass" (yes PUBLIC)
(but is not very important)

"C:\Program Files" try to install in other folder or in this way
C:\Java\jdk1.5.0_03
i saw some strange cases that when the folder have spaces, sometime dont work,
your variables is right

"Wondering why Sun is making it so difficult to use on Windows Environment???
"

is false, really Microsoft put some things in its SO XP to affect JAVA in the way to run or execute JAVA very slow in the mentionated SO, an old cheat and dirty

and always at the end of your CLASSPATH put ; <---------- THIS VERY IMPORTANT
is other reason that the program dont execute but yes compile
(my own experience)



DR POMPEII, THE PLACE OF THE OBLIVION OF GOD
Reply With Quote
Reply


Thread Tools
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
Apache, Axis and JDK for web service problem solomon_13000 Apache Tomcat 0 August 26th, 2005 08:16 AM
Having Problem with Tomcat and/or JDK evenpar JSP Basics 5 July 29th, 2004 10:24 AM
Setup problem Martyn BOOK: ASP.NET Website Programming Problem-Design-Solution 1 June 24th, 2004 02:57 PM
setup progrm problem alyeng2000 Pro VB.NET 2002/2003 1 February 17th, 2004 06:45 PM
problem with Setup Program alyeng2000 VB.NET 2002/2003 Basics 0 November 28th, 2003 03:26 AM



All times are GMT -4. The time now is 09:28 AM.


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