Java Linux port for Strong ARM platform
Hi all, I want to know whether there is a port available or some one is working on porting JDK (Java Linux) to Strong ARM platform (Netwinder?). TIA Siva --- Sivakumar V | Tel : (65) 872 9030 Senior R&D Engineer | DID: (65) 870 9338 Centre for Wireless Communications | Fax : (65) 779 5441 20 Science Park Road| #02-34/37, Teletech Park| Singapore Science Park II | Singapore 117 674 | e-mail : [EMAIL PROTECTED] url : http://www.cwc.nus.edu.sg --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
It's finished!
Well, the code anyway. I have now finished the first version of a java class wrapper for the linux joystick driver, written a java gui test program, and it works! ... er, At least it works on my system, with my jdk, on my distribution, with my joystick, so I'd like to make it available for others to test. But, as this is my first linux programming project, I have no clue how to build appropriate makefile for: 1- gotta build the native .c file into a shared library 2- build the java files into a jar 3- need to install the .so created in step 1 into an appropriate directory. (In the LD_LIBRARY_PATH?) 4- put the .jar file in an appropriate directory in the classpath. 5- How do I put an appropriate "license" on it so it can be used freely? I'd like changes to come back to me, so I can be the maintainer of the thing, but want people to use or improve it, and make it useful. So,I think there should be: make clean make configure - do I need this? maybe to find out where the linux jni includes are? make - to build the so, and the jar files make install - to install the stuff appropriately Should I write the doc in javadoc since it's just a set of classes for an api? Or in a readme? Both? Where do I include the license descriptions? Is there a "template" or sample license file somewhere that I can use? I appreciate any help in this, since I've never attempted this stuff, and have never done makefiles, shell scripts, etc. Where do I start? Thanks, -- Kevin White, Software Engineer Envision Telephony [EMAIL PROTECTED] [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 pre-v1: Missing shared library
Hi, thanks for your work on porting JDK 1.2 to Linux. I've downloaded JDK 1.2 pre-v1 for i386 and have tried to run it on a Pentium PC with 2.0.36 kernel (SuSE 6.0 distribution). Everything is running fine as long as no X11 window has to be opened. In that case, a shared library libstdc++-libc6.0-1.so.2 is not found (detailed error message attached). I know of libstdc++* shared libraries, but this name is strange to me. Any suggestions? --Mark -- Mark Minas Univ. of Erlangen, CS Dep. (IMMD II) Phone: +49 9131 85-27622 Fax: +49 9131 85-28809 or +49 9131 16804 mail: mailto:[EMAIL PROTECTED] or mailto:[EMAIL PROTECTED] URL: http://www2.informatik.uni-erlangen.de/~minas Exception in thread "main" java.lang.UnsatisfiedLinkError: /amd/faui20/export1/java/JDK-1.2-Linux-pre-v1/jre/lib/i386/libfontmanager.so: libstdc++-libc6.0-1.so.2: cannot open shared object file: No such file or directory at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(Compiled Code) at java.lang.ClassLoader.loadLibrary(Compiled Code) at java.lang.Runtime.loadLibrary0(Compiled Code) at java.lang.System.loadLibrary(Compiled Code) at sun.security.action.LoadLibraryAction.run(Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.font.NativeFontWrapper.(NativeFontWrapper.java:41) at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.(X11GraphicsEnvironment.java:61) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Compiled Code) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(Compiled Code) at java.awt.Font.initializeFont(Compiled Code) at java.awt.Font.(Compiled Code) at javax.swing.plaf.metal.DefaultMetalTheme.(Compiled Code) at javax.swing.plaf.metal.MetalLookAndFeel.createDefaultTheme(Compiled Code) at javax.swing.plaf.metal.MetalLookAndFeel.getDefaults(Compiled Code) at javax.swing.UIManager.setLookAndFeel(Compiled Code) at javax.swing.UIManager.setLookAndFeel(Compiled Code) at visualization.App.main(Compiled Code)
Re: JDK 1.2 pre-v1: Missing shared library
Log in as root and run these two commands. % g++ -shared -o /usr/local/lib/libstdc++-libc6.0-1.so.2 -lm % ldconfig After doing that it worked on my RedHat 5.2 box. Mo DeJong dejong at cs.umn.edu On Tue, 9 Mar 1999, Mark Minas wrote: > Hi, > > thanks for your work on porting JDK 1.2 to Linux. I've downloaded JDK > 1.2 pre-v1 for i386 and have tried to run it on a Pentium PC with 2.0.36 > kernel (SuSE 6.0 distribution). Everything is running fine as long as no > X11 window has to be opened. In that case, a shared library > libstdc++-libc6.0-1.so.2 is not found (detailed error message attached). > I know of libstdc++* shared libraries, but this name is strange to me. > Any suggestions? > > --Mark > > -- > Mark Minas > Univ. of Erlangen, CS Dep. (IMMD II) > Phone: +49 9131 85-27622 > Fax: +49 9131 85-28809 or +49 9131 16804 > mail: mailto:[EMAIL PROTECTED] or >mailto:[EMAIL PROTECTED] > URL: http://www2.informatik.uni-erlangen.de/~minas -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2 pre-v1: Missing shared library
RTFM The workaround was posted many messages ago -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK 1.2 Success
Folks, Just a note to say I have JDK1.2 running under RedHat 5.2 successfully, after putting in the recommended symlink for libstdc++-libc6.0-1.so.2. All my Java2D code works fine, AffineTransforms, Stroke, Image manipulation etc. Next I have to try to get JavaComm working. I am seeing an occasional segv, but nothing I can get a reproduce on to raise a bug report. Thanks to the porting team for all the significant hard work - it is appreciated. Rob -- Rob Nugent Development Manager UniKix Technologies Europe [EMAIL PROTECTED] http://www.unikix.com Tel: +44 (0) 1489 585503 Fax: +44 (0) 1489 881363 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Catching operating system signals
Is there any facility (Java API call) which can be used to catch operating system signals sent to the Java Virtual Machine and do whatever deemed necessary upon reception of a specific signal? Any help appreciated. Peter -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Catching operating system signals
Peter Kovacs wrote: >Is there any facility (Java API call) which can be used to catch operating >system signals sent to the Java Virtual Machine and do whatever deemed >necessary upon reception of a specific signal? There isn't anything as standard. Perhaps this will help, though: http://interstice.com/~kevinh/projects/javasignals/index.html Ron -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Clipboard cut & paste and JVM/X/Swing
Clipboard interaction between JFC/Swing and other XFree86 apps Does the JVm application cut & paste between the CLIPBOARD buffer and/or the PRIMARY buffer ? Pete -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Clipboard cut & paste and JVM/X/Swing
This was the first thing I looked at in the source, the reference to "CLIPBOARD" is still hard coded in the source which I think is calling native code to set up the selection using XLib, atoms and all that, so I would guess the answer must be no. I think this is a platform specific issue for X. If it uses the other, then I suspect it would interfere with any applications relying on selections for un-do ? >Clipboard interaction between JFC/Swing and other XFree86 apps > >Does the JVm application cut & paste between the CLIPBOARD buffer and/or >the PRIMARY buffer ? > >Pete > > >-- >To UNSUBSCRIBE, email to [EMAIL PROTECTED] >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
problems with UDP broadcasts in 1.2 pre1
It seems like 1.2 pre1 cannot do UDP broadcasts. DatagramSocket.send throws permission denied if broadcast address is specified. I looked at the kernel source (I use 2.0.36) and it looks like before broadcasting is allowed SO_BROADCAST socket option needs to be set on the socket. jdk 1.2 on NT dows not have this problem. Cheers, Alex PS: To java porting team, thanks for the 1.2 release --- Alex Harin, PhD Universal Computer Services Tel +27 11 339-6111 PO Box 31266 Braamfontein 2017, South Africa Cell +27 82 900-4779 20th Floor, Total House, Smit St, Braamfontein Fax +27 11 339-3421 Johannesburg, South Africa [EMAIL PROTECTED] ** http://www.ucs.co.za -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ColorModel exception on 32-bit display (Redhat5.2+XFree3.3.2.3+AccelX)
"Alexander V. Konstantinou" <[EMAIL PROTECTED]> writes: > I have submitted a bug report concerning an error running the SwingSet demo > on a RedHat 5.2 machine running XFree + AcceleratedX in 32-bit mode. > After posting, I tried restarting in 16-bit mode and the demo executed. This is interesting. I have observed just the opposite effect. The SwingSet demo runs with 32 bpp (and 8 bpp) but not with 16 bpp. X server is the XFree SVGA server for a Riva 128 card as packaged with debian 2.0. Error message: Error loading L&F: java.lang.IllegalArgumentException: Raster ShortInterleavedRaster: width = 64 height = 64 #numDataElements 1 is incompatible with ColorModel DirectColorModel: rmask=7c00 gmask=3e0 bmask=1f amask=0 Mark -- Mark Richters ([EMAIL PROTECTED]) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
unpacking JDK1.2
I noticed that the download I have of the JDK1.2 is 36M and the all of the new ones are 24M and 12M, plus they are in a bz2 format. How does one go about unpacking this format? I have RedHat5.2 and when I try to unpack bzip20rmp all I get is However, I can't find any help files listed for bunzip2 Can someone help me out? Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] www.maxor.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JDK 1.2 pre-v1: Missing shared library
On Tue, Mar 09, Mark Minas wrote: > thanks for your work on porting JDK 1.2 to Linux. I've downloaded JDK > 1.2 pre-v1 for i386 and have tried to run it on a Pentium PC with 2.0.36 > kernel (SuSE 6.0 distribution). Everything is running fine as long as no > X11 window has to be opened. In that case, a shared library > libstdc++-libc6.0-1.so.2 is not found (detailed error message attached). > I know of libstdc++* shared libraries, but this name is strange to me. > Any suggestions? ln -sf /usr/lib/libstdc++.so.2.9.0 /usr/lib/libstdc++-libc6.0-1.so.2 -- mfG, Carsten Hoeger +---+ | Carsten Hoeger SuSE GmbH| | [EMAIL PROTECTED] Schanzaeckerstr. 10 | | http://www.suse.de 90443 Nuernberg, Germany | +---+ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JVMDI
Nathan Meyers wrote: > > Now that we can't nag about JDK1.2, I'll reluctantly break the ice on > another availability question: > > Any plans afoot to do the JVMDI (native JVM Debugger Interface) on > Linux? I withdraw my question... it's apparently already there (my mistake). What I'm missing is a native piece from Sun -- not part of the JDK -- that provides back-end support for debugging. Not sure what it'll take to make that available for Linux. Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk1.2: libfontmanager.so: Unsatisfied Link
I'm having a problem getting the JDK1.2 to run on my work machine. It's a RedHat5.0 with a handful of upgrades. Anything non-gui related works fine, but when I try to do anything graphical, I get the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: /usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: undefined symbol: __deregister_frame_info I've tried searching through all the recent emails but I haven't found any answer to this problem. Can someone help me out? On the flip side, jdk1.2 work great on my machine at home which is a RedHat5.2 system. With only the minor tweak listed several times here I had it up and running with very little effort! It was nice to generate a new set of enhanced javadocs. Great job guys! -- B. Scott Boding | "Woah! Is my hair out?" FCI Communications | Hades, Lord of the Dead (408) 947-1014 | from Disney's Hercules -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: terrible fonts in linux-jdk1.2
I get the warning about zapf dingbats too (lots of times on starting a single swing app) and the application seems to get the font metrics wrong - the text appears at the normal size, but there are huge gaps between lines (as if it was all doublespaced). The application in question is jEdit, which is available from www.gjt.org/~sp/jedit.html. Unfortunately, the version I am using is 1.4pre1, which is now obsoleted by 1.4final. I'm downloading this now to see if it has the same problem. I'll post back shortly and let you know. Thanks for the port guys - this is great! Stuart. PS could you include my address in any replies to this, as I read the list by the archive on the web and it only updates daily. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: terrible fonts in linux-jdk1.2
Stuart Ballard wrote: > > I get the warning about zapf dingbats too (lots of times on starting a > single swing app) and the application seems to get the font metrics > wrong - the text appears at the normal size, but there are huge gaps > between lines (as if it was all doublespaced). > > The application in question is jEdit, which is available from > www.gjt.org/~sp/jedit.html. Unfortunately, the version I am using is > 1.4pre1, which is now obsoleted by 1.4final. I'm downloading this now to > see if it has the same problem. I'll post back shortly and let you know. The same issue affects jEdit 1.4final. I don't have any other swing/AWT applications to test, but I do know that jEdit works okay on JDK1.2 on windows. If there's any other information I can give to help track this down, let me know. By the way, the source code to jEdit is available at the url that I gave, in case that helps tracking down the problem. I doubt it's a jEdit issue, but it might help to figure out which method it's calling that isn't working. Oh, and I forgot to give information about my system before - it's a Red Hat 5.2 box (upgraded from 5.1) with KDE/kwm as the window manager. I haven't changed anything with the X server or the X fonts from the default that came with RH. Thanks again for the port - this is a great day for Java and Linux ;) Stuart. > PS could you include my address in any replies to this, as I read the > list by the archive on the web and it only updates daily. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Cobalt
john adams wrote: > The Cobalt Qube and RaQ products are proving popular over here in the Uk > as I expect they are in the states The Qube II has just been launched. > > These have MIPS CPUs running at 150 and 250Mhz. > > I have a customer who has one of these at raileurope.co.uk and he wants > java 1.1 or above on it how can this be done we have compiled a number > of programs for the Cobalt and they mostly work. ISTR asking this myself a little while back: How good is Java on these things? (ie: can we deploy JSP stuff on them?) I got no answer, hope you hear better. -- Rachel Greenham Epinet Communications plc -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
bugs bugs bugs, maybe not.
Hello; I tried running jdk1.2 on RedHat 5.2 with no luck. No matter what I do libjava.so is not found. So I upgraded the libs, such as glibc, libc, egcc, libstdc++, etc. I still get the same error, plus, I can not run jdk1.1.7 due to a missing symbol. A suggestion is to provide different compiled versions, such as one for Debian, SuSE, RedHat 5.2 and 5.8.X, etc., for both, jdk1.1.7 and jdk1.2 like KDE does. I volunteer to do the RedHat 5.2 and 5.8.X. Another suggestion is to get the different distributions involved. -- +++ When you think you are at the top, you find out how tall is the bottom. +++ begin:vcard n:Schonholz;Fabian E. tel;fax:310.323.1656 tel;home:310.323.9921 tel;work:310.323.9921 x-mozilla-html:TRUE org:SchonSoft Technology adr:;;2036 W. 165th Street.;Torrance;CA;90504;USA version:2.1 email;internet:[EMAIL PROTECTED] title:President/Chief Technology Officer x-mozilla-cpt:;6016 fn:Fabian E. Schonholz end:vcard
Re: unpacking JDK1.2
[EMAIL PROTECTED] wrote: > > I noticed that the download I have of the JDK1.2 is 36M and the all of the new > ones are 24M and 12M, plus they are in a bz2 format. > How does one go about unpacking this format? > I have RedHat5.2 and when I try to unpack bzip20rmp all I get is > However, I can't find any help files listed for bunzip2 > Can someone help me out? bunzip2. it comes with RedHat 5.2. Chris Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos 414 Gilbert Road [EMAIL PROTECTED] Preston, Victoria 3072 61 3 94718224 - voice Australia 61 3 94711622 - fax -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
ah yes, Java Web Server . . .
Hi - I having problemink with Java Web Server to build on RedHat 5.2 . . .the jwebs.diff patch is not finding something ### [root@beo_host JavaWebServer1.1.3]# patch --input=./jwebs-linux.diff can't find file to patch at input line 3 Perhaps you should have used the -p or --strip option? The text leading up to this was: -- |--- ../../sparc-S2/bin/startup_wrapper Thu Oct 30 14:42:05 1997 |+++ startup_wrapper Thu Mar 5 00:39:06 1998 -- File to patch: ### any suggestions . . . ? Thanks P. Sullivan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: unpacking JDK1.2
There is a rpm package at http://www.shopthenet.net/publiclibrary/RPM/dld/5.4/i386/RPMS/i386/bzip2-0.1pl2-2.i386.html it works fine for my RH5.1 On Wed, 10 Mar 1999, Chris Kakris wrote: > [EMAIL PROTECTED] wrote: > > > > I noticed that the download I have of the JDK1.2 is 36M and the all of the new > > ones are 24M and 12M, plus they are in a bz2 format. > > How does one go about unpacking this format? > > I have RedHat5.2 and when I try to unpack bzip20rmp all I get is > > However, I can't find any help files listed for bunzip2 > > Can someone help me out? > > bunzip2. it comes with RedHat 5.2. > > Chris > > Dynamic Solutions Pty Ltd http://www.dynamic.net.au/christos > 414 Gilbert Road [EMAIL PROTECTED] > Preston, Victoria 3072 61 3 94718224 - voice > Australia 61 3 94711622 - fax > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: terrible fonts in linux-jdk1.2
I have got exactly the same warning msg, though no seg violation. the swing program runs okey. but the font does not look nice. i also got the following msg Warning: Cannot allocate colormap entry for default background. i'm using RH5.1 can anyone help? Thanks! % java test Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] (snip) Font specified in font.properties not found [--zapf dingbats-medium-r-normal--*-%d-*-*-p-*-adobe-fontspecific] SISIGSEGV 11* segmentation violation stackpointer=0xbfffc078 > [using Debian 2.2] I's using Debian 2.2, too. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
diffs
Is there an ETA for diffs? I want to get this running on FreeBSD ASAP. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: idltojava and Java Plug-in
Does IDL stand for Interactive Data Language? On Mon, 8 Mar 1999, Alvaro del Castillo wrote: > Hi guys, > > Thanks for your great work. > > I have installed JDK1.2pre1 in a Debian 2.0 system and I have no > problems using javac and java. > But you know, we need other tools for our Java development. > > Can you tell me the plans for the JDK 1.2 plugin ? > > And who is responsible for the idltojava compiler ? Without this piece > we can't develop > CORBA programs. The people at Sun could develop idl2java in Java. > > Bye for now guys > > -- Alvaro > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Missing font
Hi! I know this is not a Java-Unix mailing list, but I have a question which someone might still be able to answer. I am running Solaris 2.6 and JDK1.2 (Reference Implementation). When I start up a GUI program I get the following messages: Font specified in font.properties not found [-urw-itc zapfdingbats-medium-r-normal--*-%d-*-*-p-*-sun-fontspecific] Anyone knows what this means? Thanks, Volker Augustin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: idltojava and Java Plug-in
Interface Definition Language (for CORBA) Carl Nathan Buggia wrote: > Does IDL stand for Interactive Data Language? > > On Mon, 8 Mar 1999, Alvaro del Castillo wrote: > > > Hi guys, > > > > Thanks for your great work. > > > > I have installed JDK1.2pre1 in a Debian 2.0 system and I have no > > problems using javac and java. > > But you know, we need other tools for our Java development. > > > > Can you tell me the plans for the JDK 1.2 plugin ? > > > > And who is responsible for the idltojava compiler ? Without this piece > > we can't develop > > CORBA programs. The people at Sun could develop idl2java in Java. > > > > Bye for now guys > > > > -- Alvaro > > > > > > -- > > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
My big stupid mistake
Ok, I'm really stupid. Please don't flame me for how stupid I was. I was writing a Makefile and testing it. In the make file I have: #make a directory we can use for jarring things up mkdir jar #copy the com/kevinsworld/. directory structure cp -r com jar cd jar #don't want java files in the jar, just class files rm com/kevinsworld/linux/devices/*.java #create the jar jar -c0vf com cd .. rm -r jar First problem: the cd apparently doesn't work in the make file, so it actually removed my java source files from where I really, _really_ didn't want them removed. Oh, where is linux's undelete feature! (You know, the "gotta protect the morons" feature...). So, how do I "cd" in a makefile? Jar only works correctly if you're in the directory of what you want to jar. i.e.: if I am in jar and say "jar -c0vf jar/com" it puts the files in the jar as if they were in package jar/com/kevinsworld/... rather than com/kevinsworld/... So, how do I cd in a makefile? Second problem. I was stupid and didn't think to copy my source files elsewhere. This is a relatively small project I was just working on and hadn't backed up yet. (I already admitted to stupidity). Can I disassemble my java .class files to get something to work from to recreate the source? Thanks for any help, The Moron -- Kevin White, Software Engineer Envision Telephony [EMAIL PROTECTED] [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: My big stupid mistake
Kevin White wrote: > > Ok, I'm really stupid. Please don't flame me for how stupid I was. I > was writing a Makefile and testing it > > First problem: the cd apparently doesn't work in the make file, so it > actually removed my java source files from where I really, _really_ > didn't want them removed. Make executes each command line in its own subshell. You ran the "cd" command in a shell. Then you ran the "rm" in another shell. And so on. If you want commands that change the shell environment (such as changing current directory) to affect later commands, you need to combine them in the same line, using the ";" separator. For example: cd jar; rm com/kevinsworld/linux/devices/*.java > Second problem. I was stupid and didn't think to copy my source files > elsewhere. This is a relatively small project I was just working on and > hadn't backed up yet. (I already admitted to stupidity). Can I > disassemble my java .class files to get something to work from to > recreate the source? There are decompilers around. You might try mocha... it's free. Look for it in finer Java emporiums. Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Servlets Mapping
Hi Folks I am writing Servlets using JRun Pro 2.3 and Apache 1.3. I have a problem in placing the Servlets Source files in different dir other than the JRun Pro default Servlets dir. I even tried doing the same with the Java Web Server 1.1.3. But could not map the Servlets dir to a different dir of my choice. Help needed Bye Ajay -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: My big stupid mistake - Thanks!
Thanks to all the pointers. I decided to get jad as the decompiler to use, and it worked great. I still have to test all the class files after compiling them from what it creates, but going through the source, jad sure did a good job. Also thanks for the pointers on the Makefile problems I had. Kevin White [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]