Writing Out Ascii/Text Files
Using JTextArea: How can I write out an entire string without loosing the the hardreturns, spaces and tabs. I have tried to do: raf.writeBytes(jta.getText()); and raf.writeChars(jta.getText()); Is there anyway to just write out what I needthen be able to use while(next()) String line = newRAF.readLine(); Thanks Steve Gee Developer/Analysist Maxor IT
Need glibc 2.0.7
Where can I get the glibc library version 2.0.7 Steve
JFC Compiling problems?
Any reason why I can run ". runnit" from the SwingSet directory, but can't get this to compile? import com.sun.java.swing.*; public class test extends JFrame{ public test(){ this.setSize(300,300); this.setVisible(true); }//end constructor public static void main(String args[]){ new test(); }//end main }//end class SysVariables JAVA_HOME="/usr/local/jdk1.1.6" CLASSPATH="/usr/local/jdk1.1.6/lib/classes.zip:/usr/local/swing-1.0.3/swing .jar:." PATH=$PATH":/usr/local/jdk1.1.6/bin" Any ideas on what happens?
JFC Compilation still bothersome
Still having problems compiling import com.sun.java.swing.*; public class test extends JFrame{ public test(){ this.setSize(300,300); this.setVisible(true); }//end constructor public static void main(String args[]){ new test(); }//end main }//end class ERROR: test.java:2: Package com.sun.java.swing not found in import. import com.sun.java.swing.*; ^ test.java:3: Superclass JFrame of class test not found. public class test extends JFrame{ ^ 2 errors I have tried using import javax.java.*; as well as having added swingall.jar and motif.jar? I appreciate the help this far, any more ideas? Steve
Re: Sun vs microsoft? RE:We Won!
It's about time someone stood up to those cronies I love the statement made by Maritez "The option of not supporting Java is one that is open to us" This is one statement I would love to see happen!!! I would love to see how much Microsoft reeaaayyy doesn't need Java. Steve Gee Developer/Analyst [EMAIL PROTECTED] www.maxor.com ...do or do not, there is no tryYoda
Location of Benchmarks
would someone please repost the link to the latest benchmarks Good old lotus-notes "ate" some of my archived mail Thanks Steve Gee Actuate Administrator/Java Developer Maxor National Pharmacies - Information Technologies www.maxor.com [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
anyone using JDK1.2(beta)
I am downloading the latest JDK1.2 betafrom ((http://www.tux.org/pub/java/JDK-1.2/i386/pre-v1/)) is anyone currently using it? where there any problems with installation or code porting? Thanks 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]
All I need for JDK1.2
Double Checking download "stuff" for JDK1.2 All I need to install the JDK1.2 is: 1_2.tgz 36,218KB the JDK1.2 itself urw-fonts_tar.gz 1,509KB GIMP fonts anything else? Steve Gee Maxor National Pharmacies Information Technologies Java Developer [EMAIL PROTECTED] www.maxor.com -- 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]
Library problem
I would like to say first off, Thanks to the blackdown team for getting JDK1.2 ported. I finally got it installed last night and had no problems running it until I tried to implement some of the GUI libraries. Here is my code: import javax.swing.*; public class jfctest extends JFrame{ public static void main(String args[]){ new jfctest(); }//end main public jfctest(){ init(); }//end contstuctor public void init(){ this.setSize(300,300); this.setVisible(true); }//end init }//end class and here is my error: # java jfctest Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.2/jre/lib/i386/libfontmanager.so: libstdc++-libc6.0-1.so.2: cannot open shared object thanks for the help Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
cannot open shared object
# java jfctest Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/jdk1.2/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) any ideas on correcting this error? Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
re: libstdc++-libc6.0-1.so.2
Is there no answer to this question? I have sent the same question in many times before and I did not see any response. ( maybe I just missed it ) Thanks Steve -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: "Can'nt find the driver: jdbc.."
Here is a code snipplet that I use for connecting to an oracle rdbm you may have to alter it somewhat to get it to work right for you, but I do believe that with a little study you will have no problems. ~~ FYI: Oracle is probalby the hardest database to connect to ~~ /* S T A R T - C O D E */ import java.sql.*; import com.informix.jdbc.IfxDriver; import oracle.jdbc.driver.*; import java.math.*; public class Conn{ Connection CurrConn; String Driver= new String(); String Host,Service,Dbase,Server,User,Pword,Dns; public Conn(){ try{ DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); }catch(Exception e){System.out.println("ORACLE DRIVER LOADER ERROR: " + e);} }//end constructor private void setOracleConnection() { //throws Exception try{ Class.forName(Driver); Connection conn = DriverManager.getConnection ( "jdbc:oracle:thin:123.45.678.90:1521:SID_NAME","USER", "PASSWORD"); }catch(Exception e){System.out.println("ORACLE ERROR: " + e); e.printStackTrace();} }//end getInformixConnection }//end Conn class /* F I N I S H - C O D E */ Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: retriev the oracle data! PROBLEM?????
you will need to "create a statement" using /* S N I P P L E T ***/ stmt = conn.createStatement(); where conn is your connection. /* S N I P P L E T ***/ Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Javac but no Java
Running Slackware 3.4 with JDK 1.1.5 I can run javac but when I run java Test in directory /java I get the error Test.class not find. My profile has "." set and I also export my PATH="$PATH:/java" but it still can't find it. Any ideas will be helpful. Steve Gee Maxor NPS Development "Do or Do Not, there is no Try"
Redhat 5.0 Setup
Would someone mind telling me the files I need to setup the JDK on Redhat. Also, if you wouldn't mind, when I install the "glib??" files (something like that) what is the tar command to force them to overwrite the older versions. Sorry for the trouble, and thanks. Steve
JDK117 problems
Does anyone know of any current problems relating to Redhat5.2 with kernel 2.2.6 and javac? I get the typical "how-to" when I type #java I get a core dump when I type # javac geko.java and this error when I type #javac_g /usr/local/jdk117/bin/i686/green_threads/java_g: error in loading shared libraries: /usr/local/jdk117/lib/i686/green_threads/libjava_g.so: undefined symbol: _dl_symbol_value I have never had problems with the JDK on linux before, so I don't really know where to start. Thanks Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 "...it's better to burn out, than to fade away..." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.1.7v2
Greetings all, ..and thank you for your quick replies to my last JDK problem. I was advised that JDK1.1.2v2 will run under the latest GLIBC versions (2.2) Is this correct? Thanks all Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JDK1.1.7_v2 Where?
I have checked the mirrors from http://www.blackdown.org/java-linux/mirrors.html and none of them show v2? Can anyone point me to its locations.. Thanks Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: IBM-jdk Where can I get it
Where can I download the JDK from IBM for Linux? _ Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: jdbc and oracle 8.0.5 using jdk1.2
This may not be exactly what you are looking for, but this is the code I use to connect to oracle. ( and it is for 1.1 ). /***/ /*** S N I P P L E T */ /***/ import java.sql.*; import oracle.jdbc.driver.*; import java.math.*; public class OrclConn{ public OrclConn(){ try{ DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver()); }catch(Exception e){System.out.println("ORACLE DRIVER LOADER ERROR: " + e);} }//end constructor Connection CurrConn; String Driver; private return getOracleConnection(String IP-ADDRESS, String PORT, String SID, String USERNAME, String PASSWORD,){ try{ Driver = "oracle.jdbc.driver.OracleDriver"; Class.forName(Driver); CurrConn = DriverManager.getConnection("jdbc:oracle:thin:@" + IPADDRESS + ":" + PORT + ":" + SID + ", "+ USERNAME + ", " + PASSWORD); }catch(Exception e){System.out.println("ORACLE ERROR: " + e); e.printStackTrace();} }//end getInformixConnection public void closeConn() throws SQLException{ CurrConn.close(); }//end closeConn }//end class OrclConn /***/ /** E N D - S N I P P L E T **/ /***/ _ Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JNI Errors: Need Help
I am getting an error when compiling the shared library for this JNI code. Any input or advice is needed. JNI is new to me, and OE ( operator errors ) are more than likely to blame. I am however concerned because this exact code works fine on NT4.0, using Visual C++ 5.0 Compiler. OS: Redhat 6.0 JDK Version: JDK1.1.7B Lib Version: lib2.1 Shell: bash Java Source /**/ public class HelloWorld{ public native void displayHelloWorld(); static{ System.loadLibrary("hello"); } public static void main(String[] args) { new HelloWorld().displayHelloWorld(); } }//end class /**/ C Header /**/ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class HelloWorld */ #ifndef _Included_HelloWorld #define _Included_HelloWorld #ifdef __cplusplus extern "C" { #endif /* * Class: HelloWorld * Method:displayHelloWorld * Signature: ()V */ JNIEXPORT void JNICALL Java_HelloWorld_displayHelloWorld (JNIEnv *, jobject); #ifdef __cplusplus } #endif #endif /**/ C Source /**/ #include "HelloWorld.h" #include #include JNIEXPORT void JNICALL Java_HelloWorld_speakInC(JNIEnv *env, jobject obj){ printf("Greetings From the C-JNI World!!!\n"); return; } /**/ Shared Library Command: cc -I/usr/local/jdk117/include -I/usr/local/jdk117/include/genunix HellWorldNative.c -o libhello.so Compile Warning: HellWorldNative.c: In function `main': HellWorldNative.c:12: warning: return type of `main' is not `int' Core Dump Error: [sgee@maxor jni]# java HelloWorld SIGSEGV 11* segmentation violation stackbase=0xb8e0, stackpointer=0xb7e0 Full thread dump: "Finalizer thread" (TID:0x406c0210, sys_thread_t:0x41404e0c, state:R) prio=1 "Async Garbage Collector" (TID:0x406c0258, sys_thread_t:0x413e3e0c, state:R) prio=1 "Idle thread" (TID:0x406c02a0, sys_thread_t:0x413c2e0c, state:R) prio=0 "Clock" (TID:0x406c0088, sys_thread_t:0x413a1e0c, state:CW) prio=12 "main" (TID:0x406c00b0, sys_thread_t:0x81ad3c0, state:R) prio=5 *current thread* java.lang.Runtime.loadLibrary(Runtime.java) java.lang.System.loadLibrary(System.java) HelloWorld.(HelloWorld.java:13) Monitor Cache Dump: java.lang.Runtime@1080836216/1081192880: owner "main" (0x81ad3c0, 1 entry) Registered Monitor Dump: Thread queue lock: Name and type hash table lock: String intern lock: JNI pinning lock: JNI global reference lock: BinClass lock: Class loading lock: Java stack lock: Code rewrite lock: Heap lock: Has finalization queue lock: Finalize me queue lock: Dynamic loading lock: Monitor IO lock: Child death monitor: Event monitor: I/O monitor: Alarm monitor: Waiting to be notified: "Clock" (0x413a1e0c) Monitor registry: owner "main" (0x81ad3c0, 1 entry) Thread Alarm Q: Aborted (core dumped) If there is any more data I can offer, please ask. I have moved 90 percent of my development off of NT and onto Linux, this remains one of only a few items left to port over. (See attached file: HellWorldNative.c)(See attached file: HelloWorld.java) (See attached file: HelloWorld.h) Thank You _ Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 HellWorldNative.c HelloWorld.java HelloWorld.h
My Thanks--Re: JNI Errors: Need Help
Many, many thanks. The Sun Tutorial DOES NOT show that little trick. _ Steve Gee Java Developer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Any EJB Server for Linux?
Are there any EJB Server for Linux currently Available. Thanks _ Steve Gee Certified Java Programmer Maxor National Pharmacies Information Technologies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Plug-In Remark
I don't know if this is of any importance or not, but I just installed the plug-in ( 1.1 ) for NT to test Signed Applets. Netscape bombs everytime I try to run the signed applet demo from: http://java.sun.com/security/signExample/index.html I know this is not Linux related, and I'm not seeking help or otherwise. Just wanted to open up the information to the group. _ (Embedded image Steve Gee moved to file: Certified Javapic00736.gif) Programmer Information Technologies Maxor National Pharmacies [EMAIL PROTECTED] 806.324.5540 www.maxor.com 806.324.5400 Avi Schwartz ogies.com> cc: [EMAIL PROTECTED] Sent by: Subject: Re: Plugin control panel crashes Netscape avi@CFFtechnolo gies.com 03/27/00 10:18 AM That is exactly what happened to me. 8-( Avi Rachel Greenham wrote: > > OK, having now installed the Java Plugin on my system, I'm finding that if I > select the JavaPluginControlPanel item that's appeared on my bookmarks menu, > Netscape quits completely. > > -- > Rachel > -- Avi Schwartz Get a Life [EMAIL PROTECTED] Get Linux -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] Compuserve GIF