Write a file from an applet
Hi: My name is Guss and I write from Spain, so sorry for my poor english. I am trying to write e file in a server from an applet. My applet ask some questions to the user (name, address, etc.) and proccess the information and I want it to write in the server (where the applet is stored) in a text file. Some people in spain emailed me that it can be made with the URL class but I can't. Thank you. Guss -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
R.e.: Unsatisifed link error
I also use SuSE Linux 6.0, and I got this problem originally too. I created a link to 2.9.0 - this seems to work OK now, at least for Java applications (I haven't tried appletviewer yet) - don't ask me why though. I tried Notepad and Swingset, and they both now run. This is using java from the jdk bin directory, not the jre. The only problem I have is that it is practically unusable, as it is horrendously slow - I went to make a cup of coffee (Java, obviously) while SwingSet was loading. Still, I am using KDE on a P120 laptop with only 24MB RAM, and it was quite slow to start with - somebody suggested trying blackbox, which sounds like a good idea. Also, the jre should be a bit faster. Somebody mentioned problems with the AWT - well, I haven't tried any applications which use AWT, as this is pretty much redundant as a GUI, although I presume they all use the AWT event model. Regards, Dave. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Write a file from an applet
On Mon, 24 May 1999 09:24:15 +0100
Gustavo Medina del Rosario <[EMAIL PROTECTED]> wrote
> I am trying to write e file in a server from an applet. My applet
> ask some questions to the user (name, address, etc.) and proccess the
> information and I want it to write in the server (where the applet is
> stored) in a text file.
>
> Some people in spain emailed me that it can be made with the URL
> class but I can't.
I am certain you can write to a file on the server from which the
applet started. I have not written to a file, but I have read from a
file on the same server. Here is the code for reading from a file. I
am sure it can be easily modified to write to file on the server. I
the example below, CarDriver is simply a class to hold data from the
file. I did not include it, because the file access code is what is
of interest here.
/**
* get data from the server on which the applet started
* for ParkingLot database and put into a Vector
* and Hash Table of car drivers
* @exception MalformedURLException
* @exception IOException
*/
public void readParkingLotData() {
try {
// Connect to the file at the url of this applet
URL dataFile = new URL(getDocumentBase(), FILE_NAME);
// Open an input stream to the datafile at the url
InputStreamReader inputStream = new
InputStreamReader(dataFile.openStream());
// Assign a buffered reader to the input stream
BufferedReader bufReader = new BufferedReader(inputStream);
while ( true ) {
String line = bufReader.readLine();
if ( line == null ) {
break;
} else {
CarDriver carDriver = getDriverAndCar(line);
// put into vector and hashtable
if ( carDriver != null ) {
carDriversVector.addElement(carDriver);
carDriversHash.put(carDriver.getCar().getLicensePlate(),
carDriver);
}
}
}
}
catch (MalformedURLException e) {
licensePlateField.setText("Error: Could not open the data file
'" +
FILE_NAME +
"' on the server.");
}
catch (IOException e) {
licensePlateField.setText("Error: Could not open the data file
'" +
FILE_NAME +
"' on the server.");
}
}
... larry
--
Larry Arnoldy
E-mail: [EMAIL PROTECTED]
www: http://faculty.ed.umuc.edu/~larnoldy
www: http://www.geocities.com/SiliconValley/Port/6488/
ICQ: 18758505; Instant Msg: larnoldy
Work phone: (Germany) +49 6221 378325
Work fax: (Germany) +49 6221 378305
Work inhouse phone: 245
--
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdk1.2 problem
I can't tell you what the error is, yet
but on my system the compile was ok.
I put it at
www.lspvs.sorosis.ro/~emilian
On Sun, 23 May 1999, Glenn Wiens wrote:
> The following code compiles with only a "deprecated"
> warning under jdk1.2 for Windows98:
>
> ###
>
> import java.awt.*;
> import java.io.*;
> import java.util.*;
>
> public class problem extends java.applet.Applet {
>
> Button execute_button;
>
> TextArea output;
>
> public void init () {
>
> this.setLayout (new BorderLayout ());
> Panel p = new Panel ();
> p.setLayout (new FlowLayout (FlowLayout.LEFT));
> execute_button = new Button ("Hello World");
> p.add (execute_button);
> this.add ("North", p);
> output = new TextArea (10, 60);
> this.add ("Center", output);
> }
>
> public boolean action (Event ev, Object arg) {
> if (ev.target == execute_button) {
> try {
> output.setText (null);
> output.appendText ("Some text\n");
> }
> catch (Exception e) {
> output.appendText (e.getMessage () + "\n");
> }
> return true;
> }
> else
> return false;
> }
> }
>
> ###
>
> But when I try to compile it under jdk1.2 for Linux
> (jdk1.2pre-v1.tar.bz2..bz2), I get the following
> errors:
>
> ###
>
> problem.java:29: warning: class java.awt.Event in
> package java.awt has been deprecated
>
> public boolean action (Event ev, Object arg) {
> ^
>
> problem.java:30: variable target not found in class
> java.awt.Event
>
> if (ev.target == execute_button) {
>^
> problem.java:36: function appendText(java.lang.String)
> not found in class java.awt.TextArea
>
> output.appendText (e.getMessage () + "\n");
>^
> problem.java:33: function appendText(java.lang.String)
> not found in class java.awt.TextArea
>
> output.appendText ("Some text\n");
>^
> 3 errors
> 1 warning
>
> ###
>
> What am I missing? The downloaded file untar'd OK, and
> I am able to compile other code OK. It's almost as if
> some of the foundation classes were missing from the
> download. These errors result whether I set my
> CLASSPATH or not.
>
> Thanks
>
> Glenn Wiens
> [EMAIL PROTECTED]
>
> _
> Do You Yahoo!?
> Free instant messaging and more at http://messenger.yahoo.com
>
>
> --
> 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: jdk1.2 problem
Thanks -- I guess I'll poke around some more. Or maybe try another download from a different i386 mirror. - Glenn --- Emilian URSU <[EMAIL PROTECTED]> wrote: > > I can't tell you what the error is, yet > but on my system the compile was ok. > I put it at www.lspvs.sorosis.ro/~emilian > _ Do You Yahoo!? Free instant messaging and more at http://messenger.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Write a file from an applet
You will need something on ther server side accepting the input from the applet. Like a servlet or a CGI or something. Would it be possible, if not easier, to not use an applet for user input and instead use an HTML form since it is more better suited to the task? On Mon, 24 May 1999, Gustavo Medina del Rosario wrote: > Hi: > > My name is Guss and I write from Spain, so sorry for my poor > english. > > I am trying to write e file in a server from an applet. My applet > ask some questions to the user (name, address, etc.) and proccess the > information and I want it to write in the server (where the applet is > stored) in a text file. > > Some people in spain emailed me that it can be made with the URL > class but I can't. > > Thank you. > > Guss > > > > -- > 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: Write a file from an applet
You've got a couple of choices.
You can use RMI or CORBA (IIOP), going outside the HTTP protocol, if the files
are big. In your case, this sounds like overkill. You can also encode the
items into POST variables using URLConnection or HttpURLConnection. To do this,
do something like:
URL url = new URL(myURL);
HttpURLConnection urlConn = (HttpURLConnection)url.openConnection();
urlConn.setDoOutput(true);
urlConn.setRequestMethod("POST");
After this, you must create your own writer for the output stream of the
URLConnection:
PrintWriter httpOutput = new PrintWriter(new
OutputStreamWriter(urlConn.getOutputStream()));
Then, for each item you wish to output (you can encode the entire file into one
item), you must write out the items like so:
httpOutput.print(URLEncoder.encode("VAR_NAME_1") + "=" +
URLEncoder.encode(var1) + "&");
httpOutput.print(URLEncoder.encode("VAR_NAME_2") + "=" +
URLEncoder.encode(var2));
Between each item, you must write out an "&". The encode() method encodes text
for the HTTP protocol. The text is automatically decoded on the other side.
All you need to do is write a CGI script or a servlet that accepts POST forms.
You can then look up the items as you have named them above (i.e. "VAR _NAME_1"
and "VAR_NAME_2").
I hope that helps.
-dan
Gustavo Medina del Rosario wrote:
> Hi:
>
> My name is Guss and I write from Spain, so sorry for my poor
> english.
>
> I am trying to write e file in a server from an applet. My applet
> ask some questions to the user (name, address, etc.) and proccess the
> information and I want it to write in the server (where the applet is
> stored) in a text file.
>
> Some people in spain emailed me that it can be made with the URL
> class but I can't.
>
> Thank you.
>
> Guss
>
> --
> 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]
Bug found in Linux port of the JDK 1.1.7 v1a
Hi all.
I was using the Blackdown port of the JDK version 1.1.7 v1a
on a Debian Linux box when I ran into this bug in the port.
Here is a small piece of code that reproduces the bug and
the output on a Sun Solaris box vs my Linux box. I am also
going to put a bug report in the jitterbug database but
I thought people might like to try this out to see if they
are having the same problem.
public class Zero {
public static double zero = -0.0;
public static double myarray[] = { -0.0, 0.0, +0.0};
public String printmyarray() {
return "zero=" + zero + " myarray=" + myarray[0] + " " +
myarray[1] + " " +
myarray[2];
}
public static void main(String argv[]) {
Zero z1 = new Zero();
System.out.println(z1.printmyarray());
Double z2 = new Double("-0.0");
System.out.println(z2.doubleValue());
System.out.println(zero);
System.out.println(z2.equals(new Double(zero)));
}
}
(On a Sun system with JDK 1.1.6)
% java Zero
zero=-0.0 myarray=-0.0 0.0 0.0
-0.0
-0.0
true
(On a Linux box with JDK 1.1.7 v1a)
% java Zero
zero=-0.0 myarray=-0.0 0.0 0.0
0.0
-0.0
false
So it looks like the problem is in the Double string parsing code.
I hope that helps
Mo DeJong
dejong at cs.umn.edu
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Java app server on linux ?
> Yes, to DB2 from EJB. DB2 runs beautifully on Linux. I am running the beta > version but it is still great. Give it plenty of memory though. > But we will soon try out Oracle 8. We are fairly confident as Oracle's JDBC > type 4 driver is very good. I have used it elsewhere. Hopefully should not > have too many problems. > > -- Aravind Oracle 8.0.5 with the thin Oracle-JDBC driver runs very stable and performant on my Linux box (glibc Linux 2.0.34 and 2.2.5) with 1.1.x blackdown Java. (Using it for several months now) Marcel -- Marcel Ruff [EMAIL PROTECTED] http://www.lake.de/home/lake/swand/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: Java Plugin for Linux
Java-Plugin: see http://www.javasoft.com/products/plugin/ Netscape has a built in java runtime (1.1.5) If you need another java version or want to ignore security features etc., you need to supply a Java Plugin, using the netscpae plugin interface. With the Java plugin you can't use the html tag, but need to use the tag, eg. http://swand" NAME="Hello, what else?" org.omg.CORBA.ORBClass="com.visigenic.vbroker.orb.ORB" ORBServices="CosNaming" SVCnameroot="Marcel" ORBagentPort="14000" ORBagentAddr="swand" ORBgatekeeperIOR="http://swand:15000/gatekeeper.ior" LOCdebug="true" UserSessionId="TestUser" myId="1000" > Marcel -- Marcel Ruff [EMAIL PROTECTED] http://www.lake.de/home/lake/swand/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Weird Java 1.2 bug?
I'm having a problem with java 1.2 on a Redhat 5.2 system. It seems that whenever I run any java application that 5 instances of that program get loaded into memory. The same is true when I attempt to run the rmiregistry. Is this normal? The same code that I'm running worked perfectly on java 1.1.7. Any Ideas? Thanx in advance. Trying to be happy is like trying to build a machine for which the only specification is that it should run noiselessly. Brandon Anderson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Weird Java 1.2 bug?
Brandon Anderson wrote: > > I'm having a problem with java 1.2 on a Redhat 5.2 system. > > It seems that whenever I run any java application that 5 instances of that > program get loaded into memory. The same is true when I attempt to run > the rmiregistry. Is this normal? The same code that I'm running worked > perfectly on java 1.1.7. Any Ideas? Thanx in advance. Notice any similarities between those instances? They're all different threads of the same process -- Linux gives each thread its own entry in the process table. You'll notice that they have identical stats (size, etc.) because they're all running on the same chunk of address space. You don't see it with JDK1.1 because that runs green threads (non-kernel threads) by default; you can achieve similar results with 1.2 by running "java -green " Nathan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
java mailing lists
Hi all, i know this is not on topic and i appologise becaues of it, but i was looking for a good java mailing list. I dont have access to a news server so a newsgroup is no good, and i have had a good look on the web but have been unable to find any. Can anybody suggest any?? thanks, Justin Lawler. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JIT question
Hi, I have a few questions on Java 2. Does the JDK1.2 port for Linux x86 include a JIT? If so which one? Also is Blackdown working on a JDK port to Linux on sparc? Will that have a JIT? Also do you have a timeframe on when the JMF, 3D apis will be available and for which architectures? thanks. anand. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Off-Topic : Tracing
Anyone know of a good Tracing package in Java to add tracing statements in Java code that can be switched on/off at runtime ? -- Aravind -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
jdk1.2 -- No library path set
Hi I just heard about the Java port to linux and I downloaded the Java 2 version yesterday. I am running RedHat Linux 5 When I try to compile a simple program, HelloWorld, I am getting a message: No library path set. and core is dumped. The instructions specified that I didn't have to set any other paths apart from the program path. I set the Classpath and got rid of another error message, but this one has me stumped. Does anyone know what the deal is? thanks. John Young ___ Get Free Email and Do More On The Web. Visit http://www.msn.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Request: green threads as default.
Hello, Since the green threads - no jit - passed the JCK, is it possible to have this configuration the default? RMID spawns new threads (reggie, txn_mgr, etc..) as native threads which crash a lot. I've modified the .java_wrapper to force green threads, but rmid doesn't use the .java-wrapper to start VMs. So is there an env setting I could use as rmid can't be configured to use the "-green" option when it creates new VMs. Thanks! -- To ignore evil is to become an accomplice to it. begin:vcard n:Swanson;Mark x-mozilla-html:FALSE adr:;;;Ottawa;Ontario;;Canada version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;26448 fn:Mark Swanson end:vcard
Re: Corrupt jdk1.2pre-v1.tar.bz2 file??
I have tried several mirrors with the same result (including [EMAIL PROTECTED]). The file size I have is also 24457274 but the md5sum is f20663d394cef475c60eb9bb8fa27982. I have no idea what is going wrong. On Mon, 24 May 1999, Nathanael Jacobson wrote: > - Original Message - > From: Steven Maddocks <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, May 24, 1999 4:38 PM > Subject: Corrupt jdk1.2pre-v1.tar.bz2 file?? > > > > Has anyone had problems with downloading the jdk1.2pre-v1.tar.bz2 file. I > have > > downloaded a copy (tried three different mirrors and checked that the ftp > type > > is binary) and when I use bunzip2 to extract the tar file I get the > following > > error: > > > > bunzip2 jdk1.2pre-v1.tar.bz2 > > > > bunzip2: Data integrity error when decompressing. > > Input file = jdk1.2pre-v1.tar.bz2, output file = jdk1.2pre-v1.tar > > were they all .au mirrors? i have had this trouble from > mirror.aarnet.edu.au. > > > It is possible that the compressed file(s) have become corrupted. > > sure looks that way to me. I tried to contact the maintainers of > mirror.aarnet.edu.au but the address they list ([EMAIL PROTECTED]) > does not seem to exist. > > For the record the size of the file I got from aarnet is 24,457,274 bytes > and the > md5sum is 731ec3df6d3033ec96fe95694f3cdedc. What should these be? > > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- Steven Maddocks Real-Time Systems Analyst VENCorp Melbourne AUSTRALIA -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Request: green threads as default.
> Mark Swanson writes: Mark> Since the green threads - no jit - passed the JCK, is it Mark> possible to have this configuration the default? RMID spawns Mark> new threads (reggie, txn_mgr, etc..) as native threads which Mark> crash a lot. I've modified the .java_wrapper to force green Mark> threads, but rmid doesn't use the .java-wrapper to start Mark> VMs. Hm, rmid uses jdk1.2/jre/bin/java (which is a link to jdk1.2/jre/bin/.java_wrapper) by default. Mark> So is there an env setting I could use as rmid can't be Mark> configured to use the "-green" option when it creates new Mark> VMs. Set THREADS_FLAG to 'green'. Juergen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Request: green threads as default.
On 25 May 1999, Juergen Kreileder wrote: > > Mark Swanson writes: > > Mark> Since the green threads - no jit - passed the JCK, is it > Mark> possible to have this configuration the default? RMID spawns > Mark> new threads (reggie, txn_mgr, etc..) as native threads which > Mark> crash a lot. I've modified the .java_wrapper to force green > Mark> threads, but rmid doesn't use the .java-wrapper to start > Mark> VMs. > > Hm, rmid uses jdk1.2/jre/bin/java (which is a link to > jdk1.2/jre/bin/.java_wrapper) by default. Yes, but rmid doesn't use .java_wrapper to start NEW VMs. > > Mark> So is there an env setting I could use as rmid can't be > Mark> configured to use the "-green" option when it creates new > Mark> VMs. > > Set THREADS_FLAG to 'green'. > Excellent! Someone should include that in the README. Cheers. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Request: green threads as default.
> swansma writes: >> Hm, rmid uses jdk1.2/jre/bin/java (which is a link to >> jdk1.2/jre/bin/.java_wrapper) by default. swansma> Yes, but rmid doesn't use .java_wrapper to start NEW VMs. It does, trust me ;-) It uses jdk1.2/jre/bin/.java_wrapper (not jdk1.2/bin/.java_wrapper). >> Set THREADS_FLAG to 'green'. >> swansma> Excellent! Someone should include that in the README. It's described in the JDK documentation (Solaris Tool Docs). Juergen -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.2 installation problems
I just installed jdk1.2 on my linux 5.2 machine. Most things seem to be
working fine (that is I can write a simple HelloWorld program that
compiles and runs. I've also written a quick one that creates a window
with a Quit button that runs fine as well.) I've having trouble taking
using swing componenet, however. I've been trying to compile code I
wrote on jdk1.2 on WinNT and I get a series of errors of the sort:
Program.java:309: class JLabel not found in class DecisionTest
JLabel label = new JLabel("label text");
This is in spite of the fact that I included an import javax.swing.*
commmand in the initial lines of the code.
I get a similar type of message when I try to run one of the included
demos. For example when I try to execute the SwingSet class I get the
error:
java.lang.ClassNotFoundException: javax/swing/JPanel
It seems like my problem is that I have not set up the link to the
javax.swing.* libraries correctly, or maybe they don't exist yet on this
pre-release (?). Any suggestions?
Thanks,
Sam
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Good news: JINI/Spaces works.
Hello all, Anyone working with JINI/JavaSpaces may wish to know that the settings: export JAVA_COMPILER= export THREADS_FLAG=green is all you have to do to get things working stable under Linux. You really need to do this if you are doing RMID stuff as you can't control how the VMs are started any other way. (To those of you that can get RMID working with native threads - I still don't know how you did it...I can only report that this solved all of MY problems.) I know (now) the THREADS_FLAG is documented in the javadoc (thanks Juergen), but I couldn't find a reference to JAVA_COMPILER anywhere. Perhaps this should be added to the readme. Cheers! -- To ignore evil is to become an accomplice to it. begin:vcard n:Swanson;Mark x-mozilla-html:FALSE adr:;;;Ottawa;Ontario;;Canada version:2.1 email;internet:[EMAIL PROTECTED] x-mozilla-cpt:;26448 fn:Mark Swanson end:vcard
free obfuscator available
It might be of interest to the java-linux community to know there is a free and excellent class file obfuscator out there. It is available at http://www.elegant-software.com/software/jmangle/ and comes with source code. If he receives enough requests maybe the author could be convinced to release it under a free license for everybody to contribute and improve it? -- Louis-David Mitterrand - [EMAIL PROTECTED] - http://www.aparima.com So many idiots, so few comets -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: free obfuscator available
Louis-David Mitterrand <[EMAIL PROTECTED]> writes: > It might be of interest to the java-linux community to know there > is a free and excellent class file obfuscator out there. It is > available at > > http://www.elegant-software.com/software/jmangle/ > > and comes with source code. If he receives enough requests maybe > the author could be convinced to release it under a free license > for everybody to contribute and improve it? Correct me if I am wrong, but it would seem that the whole idea of a obfuscator is contrary to the idea of free software. I'm fairly certain RMS would agree. -Paul -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Installation of Java3D under RedHat 5.2
Hello all, I spent several hours installing Java3D today on my Redhat 5.2 system, and encountered several problems. I thought I'd share the workarounds I discovered / addtional software I needed. I was a newbie this morning, so if this seems trivial or has been posted already, just ignore it, but for the rest of you new to Java3D / Java for Linux, this might be useful. This information is scattered among many different sources, perhaps it should be in the README? Anyway, Linux Java3D performs identically to Java3D on my Windoze '98 box for my application (which is rather trivial, actually). Enjoy. Thanks, Kenn Installation under RedHat 5.2 = == 1) Download and install the Java3D package as suggested (java3d1_1_1pre-v1-linux-sdk_tar.bz2). 2) If you do not already have them, you will also need the Mesa 3D Graphics Library: http://www.mesa3d.org/ 3) Download Version 3.0, and compile it. Copy the libraries from /Mesa-3.0/lib to /usr/lib or your favorite library location that ldconfig can find. 4) Do an ldconfig -v to make those libraries available. The following is also needed to get Java working, but as a newbie, I had to go hunting for this information, so it bears repeating. These workarounds are listed on the known-bugs page: http://www.blackdown.org/java-linux/jdk1.2-status/known-bugs.html 5) You will need the URW fonts as suggested on the Blackdown homepage. Do a Save As on the link marked 'here' on the following page: http://www.gimp.org/fonts.html Unbundle this software, and copy it to your X11 URW fonts directory, which for me is: cp URW/* /usr/lib/X11/fonts/URW/ You also need to update your XF86Config file's font section to match the one shown on the webpage; then restart X. I had many of the fonts here, but I just did the bulk copy to make sure I had all of them. I guess you could pick and choose if you were bored. 6) You will also need to create a symbolic link to the libstdc++ library ln -s /usr/lib/libstdc++.so.2.8.0 /usr/lib/libstdc++-libc6.0-1.so.2 Hopefully, Java 3D now works. :) --+--- Kenneth W. Flynn | [EMAIL PROTECTED] Programming in C Instructor | http://www.rpi.edu/~flynnk/ Gaming Club President | --+--- "She'll make you take your | crazy life Clothes off and go dancing | Until you go insane in the rain | No, you'll never be the same She'll make you live her | | ---Ricky Martin: "Livin' La Vida Loca" -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Compiling jserv1.0b5
Hi got this when running make on jserv1.0b5 ./org/apache/jserv/JServUtils.java:66 Class javax.servlet.http.Cookie not found in import. import javax.servlet.http.Cookie; ^ I've got JSDK 2.1 and JDK117v3 on a DSO Apache136 (yeah... i'm really like this version mumbojumbo... ;-) ) Roland Carlsson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JIT question
Check the following page: http://www.blackdown.org/java-linux/ports.html Wim Ceulemans - [EMAIL PROTECTED] Nice Software Solutions - http://www.nice.be Eglegemweg 3, 2811 Hombeek - Belgium Tel +32(0)15 412953 - Fax +32(0)15 412954 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re:Compiling jserv1.0b5
I recalled that JServ does not support JSDK2.1 ?!! Steve Original message From: "Roland Carlsson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Compiling jserv1.0b5 Date: Tue, 25 May 1999 09:08:04 +0200 -- Hi got this when running make on jserv1.0b5 ./org/apache/jserv/JServUtils.java:66 Class javax.servlet.http.Cookie not found in import. import javax.servlet.http.Cookie; ^ I've got JSDK 2.1 and JDK117v3 on a DSO Apache136 (yeah... i'm really like this version mumbojumbo... ;-) ) Roland Carlsson -- 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: free obfuscator available
--- Paul Matthew Reilly <[EMAIL PROTECTED]> wrote: > Louis-David Mitterrand <[EMAIL PROTECTED]> writes: > > > It might be of interest to the java-linux > community to know there > > is a free and excellent class file obfuscator out > there. It is > > available at > > > > http://www.elegant-software.com/software/jmangle/ > > > > > and comes with source code. If he receives enough > requests maybe > > the author could be convinced to release it under > a free license > > for everybody to contribute and improve it? > > Correct me if I am wrong, but it would seem that the > whole idea of a > obfuscator is contrary to the idea of free software. > I'm fairly > certain RMS would agree. This does not have to be true. An obfuscator can be used to reduce the size of class files by replacing names like "someVariable" with a single letter. Which would lead to reduced download times of applets. Ken _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: free obfuscator available
Ken McNeil <[EMAIL PROTECTED]> writes: > This does not have to be true. An obfuscator can be used to reduce > the size of class files by replacing names like "someVariable" with > a single letter. Which would lead to reduced download times of > applets. It's been awhile since I've read up on obfuscators, so I stand corrected. On the other hand, if the free software "obfuscator" is used solely for reducing download times and not making it more difficult for developers to share source code, then maybe a name change is in order. I realize the coffee theme has been overused for Java related products, but I'm about to make myself a cup of instant coffee and it seems related to the functionality like reducing variables down to one letter. Maybe something like InstantJava, InstantByteCode, or ByteCodeOptimizer. -Paul -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
