Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Wed, 31 Dec 2003 19:17:42 -0500 (EST) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Anjali Bharat Shah cc: cygwin AT cygwin DOT com Subject: Re: Path Problems. Can anyone please help? In-Reply-To: <3083.68.55.203.3.1072912411.squirrel@webmail.umbc.edu> Message-ID: References: <3083 DOT 68 DOT 55 DOT 203 DOT 3 DOT 1072912411 DOT squirrel AT webmail DOT umbc DOT edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII There was no reason to post 3 times with different subjects - that's just likely to annoy people. By specifying the paths on the command line you've pretty much eliminated Cygwin from the equation. To make absolutely sure it's not a Cygwin problem, copy the script to "runrei.bat", remove the "for" loop (it's redundant), prepend "set" to each variable assignment, change $VAR to %VAR%, change "rm" to "del", and try running that. If it gives you the same error, it's not a Cygwin problem, and you should ask on some forum specific to the application you're trying to run. FWIW, you should have built the classpath in a normal manner and then used 'export CLASSPATH="`cygpath -wp "$CLASSPATH"`"' to convert it all in one shot. Or, alternatively, you could have used the java wrapper scripts I posted to this list back in January (see ). However, I'd hold off trying either of these approaches until you get your program to work with the explicitly specified classpath. Igor On Wed, 31 Dec 2003, Anjali Bharat Shah wrote: > Hi, > I was using the "export" command in my script file. But that was not > working. So, I tried specifying the paths using the -classpath option with > javac and java. Thats where I got the below mentioned error. I have attached > my script file for your reference. > > REI_HOME=E:/Profiles/ReiConfig/Rei > > JAVA_HOME=E:/j2sdk1.4.1_06/bin > > #### NO NEED TO CHANGE THE CONFIGURATION BELOW THIS LINE #### > > for i in ${REI_HOME}/lib/*.jar ; do > if [ "$CP" != "" ]; then > > #CP=${CP}:$i > CP="cygpath -w -p $i:${CP}" > > else > > CP="cygpath -w -p $i" > fi > done > > #export LD_LIBRARY_PATH=$REI_HOME/lib > #export CLASSPATH="$CLASSPATH:$CP:$REI_HOME/classes:." > > rm $REI_HOME/classes/*.class > $JAVA_HOME/javac -classpath > ".;$REI_HOME/lib/arp2.jar;$REI_HOME/lib/daml.jar;$REI_HOME/lib/fowl.jar;$REI_HOME/lib/icu4j.jar;$REI_HOME/lib/xercesImpl.jar;$REI_HOME/lib/xmlParserAPIs.jar;$REI_HOME/lib/yajxb.jar" > -d $REI_HOME/classes $REI_HOME/src/*.java > > $JAVA_HOME/java -classpath > ".;$REI_HOME/lib/arp2.jar;$REI_HOME/lib/daml.jar;$REI_HOME/lib/fowl.jar;$REI_HOME/lib/icu4j.jar;$REI_HOME/lib/xercesImpl.jar;$REI_HOME/lib/xmlParserAPIs.jar;$REI_HOME/lib/yajxb.jar;$REI_HOME/classes" > -Dxsbargs.value=E:/Profiles/XSB/XSB/bin ReiEngine $REI_HOME/config.xml > > > #$JAVA_HOME/javac -d classes $REI_HOME/src/*.java > #$JAVA_HOME/java ReiEngine $REI_HOME/config.xml > > > Thanking You > Sincerely, > Anjali. > > > > >>> Hi, > >>> I have a script file which runs fine with Linux. However, when the same > >>> script file when I try to run using Cygwin, I get the following error: > >>> > >>> Exception in thread "main" java.lang.UnsatisfiedLinkError: no XSB in java.library.path > >>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403) at java.lang.Runtime.loadLibrary0(Runtime.java:788) > >>> at java.lang.System.loadLibrary(System.java:832) > >>> at edu.stanford.db.xsb.XSBCore.(XSBCore.java:148) at FowlReiClient.init(FowlReiClient.java:60) > >>> at ReiEngine.(ReiEngine.java:43) > >>> at ReiEngine.main(ReiEngine.java:102) > >>> > >>> I have verified that all paths are correct. Why still do I get this > >>> error message? Please help. > >>> > >>> Thanking You > >>> Sincerely, > >>> Anjali. > >> > >> There is no JVM running *under* Cygwin[*]. Any JVM you invoke will > >> be a native Windows program. As a consequence, it will not > >> understand POSIX paths, so your CLASSPATH (and other path-related > >> variables, such as the java.library.path property) should be in Win32 > >> format (with '\' as the directory separator[^], ';' as the path > >> separator, and no mounts). You can use the "cygpath" utility in your > >> script to transform paths between POSIX and Win32 formats. > >> HTH, > >> Igor > >> [*] There's gcj, but that doesn't support dynamic class loading very > >> well, so I'm assuming you're using something else. > >> [^] Windows itself understands '/' as the directory separator, but > >> some programs may not. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/