wood burning stoves 2.0*
The moose likes Cattle Drive and the fly likes Running Java on Windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Reply locked New topic
Author

Running Java on Windows XP

Joe Otero
Greenhorn

Joined: Jan 11, 2002
Posts: 2
I've recently bought a pc with Windows XP.
I'm unable to compile or run any Java programs
with it. From the Sun web site I downloaded J2sdk. I cannot set the classpath because XP
doesn't have a autoexec.bat file ( so I'm told ).
When I right click the J2sdk icon and go the the property feild, there is a compatibility option.
From there I can choose Windows 95, 98, NT, 2000 or ME, but none for XP.
Has anyone heard of problems running J2sdk on XP?
Will Sun be updating J2sdk to work with XP?
Or am I missing something here?

TIA:
Joe
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
I've never used XP, but just because it doesn't have an autoexec.bat doesn't mean that you can't set the classpath.
Try this, go to Start->Settings->Control Panel->System->Advanced->Environment
You will be able to add things to your classpath through there, like the directory you installed the sdk to and the appropriate jar files.
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
Originally posted by Joe Otero:
Has anyone heard of problems running J2sdk on XP?
Will Sun be updating J2sdk to work with XP?
Or am I missing something here?

I know of no issues with XP and the J2sdk. see this thread, this one, and this one where people thought there were issues and found out otherwise.
[ January 11, 2002: Message edited by: Marilyn deQueiroz ]

JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Chris Andrews
Greenhorn

Joined: Sep 16, 2003
Posts: 1
There is actually no problem running Java applications, the plug-in, or webstart on XP. If you are having problems during development, try creating a bat file that will set a local classpath. That's how I do all of my java development.
It might look like this:
<code>
@ECHO OFF
set MYPROJ=c:\personal\java_library\myProject
set MYJAVAHOME=c:\sun\jdk1.4.1
set MYSOURCE=%MYPROJ%\src
set MYCLASSPATH=.;%MYJAVAHOME%\lib\tools.jar;%MYSOURCE%;%MYPROJ%\classes;%MYPROJ%\lib\xmlParserAPIs.jar;%MYPROJ%\lib\xercesImpl.jar
set PATH=.;%MYJAVAHOME%;%MYJAVAHOME%\bin;
</code>
By the way... MS has removed the ability to view applets using the old MS Virtual Machine. Here's the scoop from the horse itself:
http://www.microsoft.com/mscorp/java/?&gssnb=1
[ September 16, 2003: Message edited by: Chris Andrews ]
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
Nice isn't it, how Sun moves...
First they force Microsoft to stop supporting Java (2001) and then they blame Microsoft for not supporting Java (2002/2003).


42
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
I'm closing this thread for now cos it's out of place in this Forum and a little too old to bring back to life.


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Running Java on Windows XP
 
Similar Threads
Help!!! Error 1335 when installing J2SE SDK 1.4.2_0X
re-installing Java on Windows
WinXP and applets
NoClassDefFoundError:
"Only instances of org.omg.CORBA.Object can be bound"