Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
|
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 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 June 22nd, 2005, 02:42 PM
Registered User
 
Join Date: Jun 2005
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???
 
Old June 22nd, 2005, 11:24 PM
Authorized User
 
Join Date: Apr 2005
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





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 07:45 PM
problem with Setup Program alyeng2000 VB.NET 2002/2003 Basics 0 November 28th, 2003 04:26 AM





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