Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
    Bookmark Topic Watch Topic
  • New Topic

Running Java on Windows XP

 
Joe Otero
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1932
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 9063
12
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 ]
 
Chris Andrews
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 5093
  • Mark post as helpful
  • send pies
  • Report post to moderator
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).
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Report post to moderator
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.
 
    Bookmark Topic Watch Topic
  • New Topic