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?
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.
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
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 ]