Classpath on win NT/2000/XP
I am now trying to distribute my Java aplication on windows platforms. I made my aplication work on win 95/98/ME by modifying the autoexec.bat file, but in win NT/2000/XP there is no autoexec.bat file.
I know you can set the environment variables manually but i want to do that programatically or any other way (C++ or bat files)
I also tried this on a .bat file, but it does not work:
set classpath=%classpath%;c:\arcabin\jaxp\xml4j.jar
set classpath=%classpath%;c:\arcabin\jaxp\dtdparser115.jar
java -jar MyProject.jar
Please help me! thanx in advance.
set classpath=%classpath%;c:\arcabin\jaxp\xml4j.jarAre you sure this doesn't work?
It looks correct and something similar works fine for me (win2000).
Is there a CLASSPATH-variable set before you run the first set classpath=%classpath%-line in the batch-file - if not the classpath might not be properly set - try running the command "echo %classpath%" before you run the batch-file.
// olle
Similar Messages
-
Installing a JDBC-driver in the classpath in win 2000
Hi
I'm trying to make an aplication, that can access a remote DataBase, with the mm.mysql driver.
I have tryed to add the path to the libery where the jar file is in the classpath (in win 2000). But I can't get it to work from a dos-promt.put it in your enviroment.
Control Panel -> System -> Enviroment. -
Please Help me on CLASSPATH setting on windows 2000
I downloaded "j2sdk1.4.2_04", installed it, and set the classpath to the following path, but i cannot still compile the following program MyApplet.java, because the compile cannot still find the
netscape.javascript.JSObject., BUT I do found the netscape folder under
C:\j2sdk1.4.2_04\jre\lib\netscape\javascript, there are three classes, named JSException.class, JSObject.class, and JSUtil.class. Please help me on this .... !!
=================================================================================
// MyApplet.java
package netscape.javascript.JSObject;
public class MyApplet extends javax.swing.JApplet
private JSObject win = null;
private JSObject cell = null;
public Object callCellMethod(String name, Object[] params)
return getCell().call(name, params);
public Object callJavaScript(String name, Object[] params)
return getJSwin().call(name, params);
private JSObject getCell()
if (cell == null)
try
JSObject doc = (JSObject)getJSwin().getMember("document");
JSObject all = (JSObject)doc.getMember("all");
cell = (JSObject)all.call("item", new Object[]{"DCellWeb1"});
catch (Exception e)
e.printStackTrace();
return cell;
private netscape.javascript.JSObject getJSwin()
if (win == null)
win = netscape.javascript.JSObject.getWindow(this);
return win;
=================================================================================
D:\Tommy\Hack\Java+Ocx\java>echo %CLASSPATH%
.;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\lib\dt.jar;C:\j2sdk1.4.2_04\li
b\htmlconverter.jar;C:\j2sdk1.4.2_04\jre\lib\plugin.jar;C:\j2sdk1.4.2_04\jre\lib
\charsets.jar;C:\j2sdk1.4.2_04\jre\lib\jce.jar;C:\j2sdk1.4.2_04\jre\lib\jsse.jar
;C:\j2sdk1.4.2_04\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sd
k1.4.2_04\jre\lib
==================================================================================
D:\Tommy\Hack\Java+Ocx\java>javac MyApplet.java
MyApplet.java:1: package netscape.javascript.JSObject clashes with class of same name
package netscape.javascript.JSObject;
^
MyApplet.java:5: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
private JSObject win = null;
^
MyApplet.java:6: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
private JSObject cell = null;
^
MyApplet.java:19: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
private JSObject getCell()
^
MyApplet.java:25: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
JSObject doc = (JSObject)getJSwin().getMember("document");
^
MyApplet.java:25: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
JSObject doc = (JSObject)getJSwin().getMember("document");
^
MyApplet.java:26: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
JSObject all = (JSObject)doc.getMember("all");
^
MyApplet.java:26: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
JSObject all = (JSObject)doc.getMember("all");
^
MyApplet.java:27: cannot resolve symbol
symbol : class JSObject
location: class netscape.javascript.JSObject.MyApplet
cell = (JSObject)all.call("item", new Object[]{"DCellWeb1"});
^
9 errors
D:\Tommy\Hack\Java+Ocx\java>
================================================================================D:\Tommy\Hack\Java+Ocx\java>echo %CLASSPATH%
.;C:\j2sdk1.4.2_04\lib\tools.jar;C:\j2sdk1.4.2_04\lib\dt.jar;C:\j2sdk1.4.2_04\lib\htmlconverter.jar;C:\j2sdk1.4.2_04\jre\lib\plugin.jar;C:\j2sdk1.4.2_04\jre\lib\charsets.jar;C:\j2sdk1.4.2_04\jre\lib\jce.jar;C:\j2sdk1.4.2_04\jre\lib\jsse.jar;C:\j2sdk1.4.2_04\jre\lib\sunrsasign.jar;C:\j2sdk1.4.2_04\jre\lib\rt.jar;C:\j2sdk1.4.2_04\jre\lib
Here is my CLASSPATH, and i already did it ........ But the compiler cannot still find the class ?! -
Error installing 9iAS on Win NT/2000
I downloaded Oracle 9iAS for Win NT from the web site http://otn.oracle.com/software/products/ias/software_index.htm. When I try to unzip the files using winzip 8.0, I get the following error - "Cannot open file. It does not appear to be a valid archive. Try downloading again". I tried downloading a couple of times. I am getting the same error.
I believe these files should be compatible with win2000. I would appreciate if anyone could help me with the installation, or help find a downloadable 9iAS compatible with win 2000.
Thanks,
Priya
nullCan anyone tell me where can I download the 9i database for Windows 2000? I only see the 9i Enterprise Database for Sun's Solaris.
Thanks in advanced.
--Wo -
K7N420 Pro Hangs on Win XP/2000 setup
Hi,
Win XP Pro SP1
Athlon XP 1800+
Maxtor 60 Gig
256 DDR
The Hard drive is blank. Boot from CDROM, Start Setup, Loads initial drivers, then stop on (starting windows). This is before you get to the screen to format drive as NTFS.
Microsoft has an tech support page about this and Nvidia chipsets. They suggest starting with another video card in the PCI slot, but that has not worked.
I searched the forum and could not find a similar problem. In fact there seems to be a lot of people running xp and 2000 on this motherboard.
What am I doing wrong??
Thanks for your time and help,
BAHi,
blackangel: You haven't got an active network (cable modem etc.) connected to your onboard Ethernet have you?
This can stop XP in it's tracks, so can a PCI RAID card (I know this from personal experience).
I doubt it's your PSU (although it is possible) I run my board with a Mickey Mouse 300 Watt PSU (unbranded - cost £5-£10, at most). I was using a Q-Tec 550W until recently but I decided to clean and store it as my machine works perfectly well with the generic (e-star PC Case) supply - no sudden restarts, crashes or BSODs.
PSU is:
+3.3v 20A
+5v 30A
+12v 13A
3.3v and 5.5v combined 160W - Just in case anyone's interested :D
Check APIC setting in your BIOS is set to enabled, on more than one occasion I was unable to boot XP (after install) with it disabled.
There may be other settings in your BIOS that the XP install doesn't like - run through them to make sure nothing's amiss, try disabling the PNP OS setting also (If you haven't already.)
Also, as gfilitti has mentioned - is your Windows XP disc an original or a "Backup"? Your problems may just be down to a dodgy CD.
I suspect (as do previous posters) you may have a memory problem. I use two sticks of A-Data memory (see sig) at £18.00 a pop you can't go wrong - had no problems at all with my memory!
Last but not least, is your HD connected to your MoBo properly? - As far as I know you should be using an 80 conductor UDMA ATA cable, the Red or blue connector to your motherboard, Master device connected to the black end (usually) and your slave device to the centre (grey) connector. Getting these confused can cause a multitude of ills.
Forgive me if I'm stating the obvious - or you've tried all this before.
Anyway, when you have fixed it - let us know how.
Axel :D -
Hello Mr. otn i would like to have a Win-NT/2000-Discussion-group too
I am not a NT-Fan, but many customer ddriver ther db under NT and when it's stabil than why not?
i there a possibility ???
Thanks<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Karl Reitschuster ([email protected]):
I am not a NT-Fan, but many customer ddriver ther db under NT and when it's stabil than why not?
i there a possibility ???
Thanks<HR></BLOCKQUOTE>
I would also like to see a group specific for Windows 2000. We have installed several solaris sparc and intel servers running oracle in the last few months but it seems that that the next installs are going to be win2000. I am having more trouble ( and oracle has given me lots of trouble) with win2000 than all the others combined. It's different!! -
Increasing classpath size in windows 2000
I have java on windows 2k and the classpath variable is more than what windows allows. as a result i have a limit on the amount of classpath i can insert. as a result i am not able to use many packages. please advise ..
i tried adding new environmental variable call max_classpath=4096, but it wont work. please advise ASAP.
thanksthanks for the suggestions . i tried it .. but it wont work ..
finally i got something that worked .. its a little tedious but thats the only way out. i am just amazed that i havent found any one else with this problem.
here is the link with the information for working around that problem.
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q72171 -
CLASSPATH probs under Windows 2000
Hi,
JDK1.3 has worked reliably since i got it. No problems whatsoever. Recently i'm workingon a project which requires JDBC connectivity, and for that i needed a driver. I downloaded the mm.mysql driver and unpacked the jar file etc etc. I read in the manual that i need to set the classpath. So i did. Since then, nothing works.
if i type 'set' in prompt i get a list of all environment variables. I've 'set CLASSPATH=c:\jdk1.3;c:\jdk1.3\lib;c:\jdbcdriver\org\gjt\mm\mysql'
Files compile, but nothing runs. I get an exception 'NoClassFoundDefFoundError'. If i then reset the class path using 'set CLASSPATH=' (effectively deleteing the classpath variable) Then all works ok, except for the jdbc driver - which of course is not on the classpath.
So i'm thinking that if there is no classpath all is ok, becasue the jdk installer sets everything up for me. And when i manually set the class path i must be ommiting some crucial directory.
Pls help.
Thanks,
AlexThe period includes the current working directory in the classpath - if it wasn't there java wouldn't look there for classes. Does everything work OK now?
-
Printer name under Win NT/2000
Hi,
Does anyone have a VI or an idea how to retrieve the "Default printer
name" under Windows NT/2000? I am using LabVIEW 6.02.
Thanks,
Patrick Pol
Vitatron, the netherlandsPatrick,
I can see where you might want this info, but I know all the Print Report' VIs default to the default printer; however, if you weren't sure which printer was presently set as the default, then it would matter when you print - such as a color printer vs. B/W.
Here are 2 links to some default printer VIs which may help, if not, just use them as info.
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&E091308B77D6A8C88625683A000AD4BA&cat=FD6839395C5E51CF862567AC005866A9
http://zone.ni.com/devzone/devzoneweb.nsf/opendoc?openagent&C7659492335F6AA08625695000650A7A&cat=FD6839395C5E51CF862567AC005866A9
Good Luck, Doug -
Can a 3rd gen. Nano work with Win. 2000?
I know that the requirements are XP at lowest, but is there any way around this problem for 2000 users. I've got this expensive piece of tech sitting there gathering dust because i cant use it!
Many thanksSorry to do this, but the best solution to this problem is to stop using Windows 2000 -- it's so old, I'm sure that this is far from the only problem you are having with it, and it's only going to get worse from here on out. Why not solve it all in a single stroke?
-
Shutown and automatically Restart the os win xp/2000 after 2 hr -JNI code
hi every one and all
shutdown the system properly and then restart the system after some hr(2 hr) through Java code or JNI . give me that code or tips
thanks
sivaya thanks am already checked
this is code for that .i need restart after some time (like 2 hr after) give me tips...
import java.io.*;
public class Restart{
public static void main(String[] args) throws Exception{
RestartWin();
public static void RestartWin() throws Exception{
try
// will restart in 10 sec
Runtime rt = Runtime.getRuntime();
// this never restart only shut down
rt.exec("SHUTDOWN -r -t 10"); //-s shutdown; -r r
Runtime ref=Runtime.getRuntime(); ref.exec("shutdown /r "); // only restart in Win xp
catch(Exception e)
} -
How do I order free CD for Oracle database 8i/9i?
8i is out of support. You won't get it on any media (unless, perhaps, you're an existing Oracle Support customer and you ask nicely and they feel generous).
With OTN it used to be that we could get one product on free CD. Everything else had to be downloaded. I blew mine on JDeveloper3.1. Looking at the OTN download pages now I think they have withdrawn that option. Therefore, the only way to get Oracle 9i on CD is to pay for it.
Cheers, APC -
Setting up Jakarata for win ME/2000
I have the apache http server running properly and I have downloaded the jakarta tomact zip file from their download site but I don't know what to do now. Plz Help!!!!
In order to allow the communication between apache http server and tomcat, you should use mod_jserv and mod_jk, both of them can be downloaded from http://jakarta.apache.org within the source of tomcat. However, since you mentioned you are running that on Windows. It means you should compile those dlls on your own. I think you'd better try it out first, since there is full documentation in the apache site talking about it. Maybe you will find yourself no problem after you follow the instructions it stated.
-
Classpath Setting using win 98
Please help me in this little delima.
I want to set the classpath in win 89 and i am not finding any way of doing this correctly . Can any one tell me how can i set the class pathe in win98 environment.
Actually i am installing Tomcat and i have to set the environment verivable for this and i dont know how can i do it in win 98 environment.There's a handy little tool called sysedit.exe in Win98 that you can use to edit the 4 common config files:
autoexec.bat
config.sys
windows.ini
system.ini
just open a command window and type sysedit.
Don't forget to reboot after you've made changes.
You may have to increase the environment size if you increase the classpath by much. There have been recent posts about how this is done. -
Does Sun One crashes with Win 2003 ?
When I deployed the app in a Win NT 2000 I dont have any problem but when I'm using Windows NT 2003 server, with cold fusion and Sun One Server 6.1.
I faced that images and css files are not loaded correctly.
In some desktops I can not see the app since Windows Explorer but in others I can. They have the same connection configuration.
Even I'm receiving this exception.
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x3C432B
Function=PR_FileDesc2NativeHandle+0x1B
Library=E:\Sun\WebServer6.1\bin\https\bin\libnspr4.dll
Current Java thread:
at com.iplanet.ias.web.connector.nsapi.NSAPIConnector.jniForward(Native Method)
at com.iplanet.ias.web.connector.nsapi.NSAPIConnector.forward(NSAPIConnector.java:575)
at com.iplanet.ias.web.connector.nsapi.NSAPIConnector.forward(NSAPIConnector.java:539)
at com.iplanet.ias.web.connector.nsapi.NSAPIConnector.dispatch(NSAPIConnector.java:450)
at com.iplanet.ias.web.servlets.DefaultServlet.service(DefaultServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.ge.gecf.gains.security.AuthFilter.doFilter(AuthFilter.java:185)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
Dynamic libraries:
0x00400000 - 0x00406000 E:\Sun\WebServer6.1\bin\https\bin\webservd.exe
0x7C800000 - 0x7C8C0000 C:\WINDOWS\system32\ntdll.dll
0x77E40000 - 0x77F42000 C:\WINDOWS\system32\kernel32.dll
0x10000000 - 0x10109000 E:\Sun\WebServer6.1\bin\https\bin\ns-httpd40.dll
0x00310000 - 0x0032A000 E:\Sun\WebServer6.1\bin\https\bin\ssl3.dll
0x00330000 - 0x003AD000 E:\Sun\WebServer6.1\bin\https\bin\nss3.dll
0x30000000 - 0x30007000 E:\Sun\WebServer6.1\bin\https\bin\libplc4.dll
0x003B0000 - 0x003E1000 E:\Sun\WebServer6.1\bin\https\bin\libnspr4.dll
0x77F50000 - 0x77FEC000 C:\WINDOWS\system32\ADVAPI32.dll
0x77C50000 - 0x77CEF000 C:\WINDOWS\system32\RPCRT4.dll
0x71BB0000 - 0x71BB9000 C:\WINDOWS\system32\WSOCK32.dll
0x71C00000 - 0x71C17000 C:\WINDOWS\system32\WS2_32.dll
0x77BA0000 - 0x77BFA000 C:\WINDOWS\system32\msvcrt.dll
0x71BF0000 - 0x71BF8000 C:\WINDOWS\system32\WS2HELP.dll
0x71B20000 - 0x71B61000 C:\WINDOWS\system32\MSWSOCK.dll
0x003F0000 - 0x003F6000 E:\Sun\WebServer6.1\bin\https\bin\libplds4.dll
0x00410000 - 0x00418000 E:\Sun\WebServer6.1\bin\https\bin\nsfc.dll
0x00420000 - 0x00426000 E:\Sun\WebServer6.1\bin\https\bin\nstime.dll
0x00430000 - 0x00435000 E:\Sun\WebServer6.1\bin\https\bin\nstp.dll
0x00440000 - 0x0044E000 E:\Sun\WebServer6.1\bin\https\bin\support.dll
0x00450000 - 0x0045C000 E:\Sun\WebServer6.1\bin\https\bin\nsprwrap.dll
0x00460000 - 0x00465000 E:\Sun\WebServer6.1\bin\https\bin\getprop.dll
0x77380000 - 0x77412000 C:\WINDOWS\system32\USER32.dll
0x77C00000 - 0x77C48000 C:\WINDOWS\system32\GDI32.dll
0x00470000 - 0x0048F000 E:\Sun\WebServer6.1\bin\https\bin\libsi18n.dll
0x00490000 - 0x0049A000 E:\Sun\WebServer6.1\bin\https\bin\libdbm.dll
0x004A0000 - 0x004A5000 E:\Sun\WebServer6.1\bin\https\bin\ares3.dll
0x004B0000 - 0x004C2000 E:\Sun\WebServer6.1\bin\https\bin\zlib.dll
[20/Apr/2006:15:05:19] info ( 2356): jrNSAPI[init] reports: JRun 4.0 (Build 91015) NSAPI Extension - Jan 6 2005 15:24:50
[20/Apr/2006:15:05:19] info ( 2356): CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.1_03] from [Sun Microsystems Inc.]
[20/Apr/2006:15:05:19] info ( 2356): WEB0100: Loading web module in virtual server [https-127.0.0.1] at [gains]
[20/Apr/2006:15:05:19] info ( 2356): WEB0100: Loading web module in virtual server [https-127.0.0.1] at [search]
[20/Apr/2006:15:05:24] info ( 2356): HTTP3072: [LS ls1] http://127.0.0.1:80 ready to accept requests
Can you help me please ?There appears to be numerous problems with the libnspr4.dll that involve out-of-date versions of it. Some of the listed posts may have a solution:
http://swforum.sun.com/jive/thread.jspa?threadID=53051&tstart=0
http://www.google.com/search?num=100&hl=en&lr=lang_en&c2coff=1&q=libnspr4.dll+Sun
Maybe you are looking for
-
How do I change an Apple ID payment method to 'None'? I've tried everything and I found the only solution is to apply all over again with another e-mail address. Any other options?
-
How much will getting the dock connector on my ipod replaced cost?
My iPod went through the wash and still works but the port is damaged so that it can't sync with itunes and it charges very slowoly. When I compare my iPod port to my friends it's easy to tell that some of the posts are broken ot bent so I'm pretty
-
RERAPP on Debit and Credit condition of the same contract in the same perio
Hello Gurus I have a scenario here. My client wants a contract that specifies the tenant as a customer , and also as a vendor.When i try to make a periodic posting run i am getting the following error: Sales tax data do not define output tax. Actuall
-
Selection criteria in SQL Loader
Hi All, I have a Data file which has around 7000 lines, I am using SQL Loader to insert those records into my interface tables, but i have a selection criteria like i need to pick those records whose number starts with 'P'. Can I use the LIKE operato
-
hi all, i got one error while doing IMPORT GR error is MAXIMUM NO OF ITEMS IN FI REACHED what is the solution for that urgent regards, sujit