Installing java117_v1a (libc5 version)
I installed java117_v1a and when I tried to use it. It said it could not load libXp.so.6. Where can I down load that library? I don't want to upgrade X11 if I don't have to. Thanks EHO email: [EMAIL PROTECTED] EDMONTON, AB, T6J 6W6
Re: Problem on mSQL.
This sounds like your DNS is returning a different name for your machine (when the IP is used to do a reverse lookup) than your machine claims to be. Otherwise, mSQL may be setup to use identd to verify the user (I haven't setup mSQL so I am not sure of its authentication scheme), in this case, you would need to configure it to "trust" the win98 client. You should ask this question on a mSQL forum. It is NOT a Java or JDBC problem. On Sat, 2 Jan 1999, Gao Lei wrote: > Dear friends, > > When I use JDBC driver to connect the mSQL. > I get following error message on one of my machine. > "-1:Hostname/IP address mismatch"; but on other machines, > the java application runs well. > > Then, if I telnet the mSQL port(2224), I also get the same > string from the database server, of course, on other machines, > there's no this problem. The server is a Linux box. > > The client OS is Win98. Dose this matter? Are there any > configurations need me to set(both the server and client)? > > Thanks for any hint of it. > > Gao Lei. >
Re: Installing java117_v1a (libc5 version)
Thank you for your quick resposne. But now it is asking libc.so.6. If it's not too much trouble, I'd appreciate if you can attach the libc.so.6 and libm.so.6 and send them to me. Thanks EHO email: [EMAIL PROTECTED] EDMONTON, AB, T6J 6W6
Did that work for you? -ndkqsrvr
Title: It has been some time since you have been back to our site. I have taken many new pictures of myself and think you might enjoy them as you remember im a tall blond and my girlfriend is the redhead! Click Here And Enter we thank you for all your business in the past!
Re: Installing java117_v1a (libc5 version)
[EMAIL PROTECTED] wrote: Thank you for your quick resposne. But now it is asking libc.so.6. If it's not too much trouble, I'd appreciate if you can attach the libc.so.6 and libm.so.6 and send them to me. Thanks EHO email: [EMAIL PROTECTED] EDMONTON, AB, T6J 6W6 If it ask you for libc.so.6, you might have downloaded the GLIBC (aka libc6) version and NOT the LIBC5. The LIBC5 jdk-1.1.7-v1a java executable need : libjava.so => not found libm.so.5 => /lib/libm.so.5 (0x4000b000) libdl.so.1 => /lib/libdl.so.1 (0x40014000) libawt.so => not found libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x40017000) libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40024000) libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x40062000) libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x40076000) libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4007e000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40088000) libXp.so.6 => /usr/X11R6/lib/libXp.so.6 (0x40119000) libc.so.5 => /lib/libc.so.5 (0x4011f000)
TYA and Swing; What was the #define again?
Hi! What was that #define that were supposed to be commented out to get TYA 1.2 to work with Swing, even though it tries to disable JIT during init? Thanks! / Peter Schuller E-Mail: [EMAIL PROTECTED] Web: http://hem.passagen.se/petersch
Java Shell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i'm working with java in linux, (486dx100 with 32mb of ram), i notice that java takes a lot of time in order to load the jvw, and i think that if we have something like a java shell or an application for commands lines written in java, in that we can run java applications, can we improve the performace of java avoiding the overhead of have to load the java virtual machine every time we want to run an application?? Maybe this can be done using dynamic loading?? That's only an idea. p.d. english is not my native language. Nestor A. Diaz L. Universidad de Los Andes mailto:[EMAIL PROTECTED] Ingenieria de Sistemas y Computacion http://wwwest.uniandes.edu.co/~n-diaz Santafe de Bogota D.C., Colombia PGP Public Key: finger -l [EMAIL PROTECTED] "Vale la pena buscar oportunidades para aprovechar el trabajo ajeno en vez de hacerlo uno mismo... es un medio mas barato de ser mas productivo" ( El Entorno de programacion UNIX ) B.K. R.P. -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBNo/ZaAO+RN0SsCTREQKE3wCdHwUcgR8GX3yZyXKgtZLlnBSj/x4AoMWv SvTCZ996MqHTv9EeBmp6ErvB =UZZX -END PGP SIGNATURE-
Re: Java Shell
I believe that you can compile Java support into your kernel, or perhaps as a module. In other words, what you want does exist. Check into building a new kernel or using modules. Richard Hall Network Services University of Tennessee
Re: Java Shell
On Sun, 3 Jan 1999, Richard Hall wrote:
> I believe that you can compile Java support into your kernel, or perhaps
> as a module. In other words, what you want does exist. Check into
> building a new kernel or using modules.
I've used it. It's no more than a cute trick for loading the jvm: it even
runs the java script.
The commands
java fred
&
fred.class
are equivalent if "fred.class" can be found in a directory mentioned in
${PATH}.
I've not looked at any java source code, and I'm not knowledgeable in Unix
programming, so I'll draw a parallel with OS/2 and hope it makes some
sense.
OS/2 users have a choice between two web browsers: Netscape and IBM's
WebExplorer. Before the use of Frames, Javascript and Java became
widespread many (maybe even most) users preferred WebExplorer. The reason
most cited is that it's faster.
The reason, people said, is that most of the code's in Dynamic Link
Libraries (shared libraries for WIN* and OS/2): two instances of webex
started separately share most of their code and so (the second and
subsequent copy) starts more quickly. Quite likely the first gives the
appearance of starting more quickly as it doesn't have to load all the code
do do something.
I notice that the executable of recent OS/2 sendmails (and it's a recent
port) os less then three k. This means that, if it's running as a daemon,
additional sendmails start almost instantly.
I assume that Linux shared libraries give the same benefits, but reduced
load times can only be achieved if
1 The executables are created to use them
2 The JVM code is mostly stored in shared libraries
3 There's an existing JVM running (so the libraries are loaded)
The first two items are in the hands of Sun and the porters.
Another item that can seriously degrade startup time and perhaps is
subsequent performance is the number of directories and files in
${CLASSPATH}. Carefully crafting it for each application can provide some
benefit.
On the whole, thouhg, I'd not expect scintillating performance from a 486.
One of the unresolved penalties of java is its overhead. Interpretation
costs about an order of magnitude more CPU than native code. For developed
code you could explore the field of java-to-native compilers: there are
several around.
--
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.
java and BeoWolf
Anyone tried this or now where I can get some details will the jvm take advantage of a beoWolf cluster ??? do I need native threads ??? Thanks Shane NetZero - We believe in a FREE Internet. Shouldn't you? Get your FREE Internet Access and Email at http://www.netzero.net/download.html
ANNOUNCE: network file synchronization utility
(swing+rmi; developed with Blackdown jdk1.1.7a) Xfiles synchronizes and cross-validates two file directory trees across a network. A client/server program (GUI on the client) traverses an indicated file tree and reports any files that are missing on the server machine, missing on the client machine, or different. For each such file, the file size/sizes and modification date(s) are shown, and a comparison (using Unix diff) can be obtained. For files that are missing from one tree, similarly named files in that tree are reported. Inconsistent files can then be copied in either direction or deleted on either machine. The file trees do not need to be accessible via nfs. Files checksums are compared, so largely similar trees can be compared over a slow network link. The client and server processes can also be run on the same machine. (The program is also usable as an alternative backup strategy: Portions of a disk may go bad at any time, with no simple indication of which files were affected. You may not examine all of the thousands of files on a disk in the time interval before a backup tape goes bad. Don't stop making backups, but cross-validate against a second disk to make sure you aren't backing up bad data.) GPL'd source & binary at: www.idiom.com/~zilla/xfiles.html
Security (was Re: policytool)
> > This only works for the appletviewer, applications do not make any > > use of the java.policy file per default in the Linux 1.2 version. > > You need to set a runtime option if you want to use it. > > This will change in JDK 1.3 > > > > That is NOT TRUE. I was getting security exceptions when doing normal > things like reading/writing from a file and connecting to the rmi > registry. When I used the policy tool my problems went away. Excerpt from the 1.3 release notes: However, this means that in the Java 2 SDK, application classes no longer have all permissions by default. Instead, they are granted permissions based on the system's configured security policy. This has been invented with 1.3 and did not apply to versions <1.3 Though I am not sure about 1.2.2. The Linux 1.2prev2 works fine without setting the policy (which means that our proxy eg reads and writes files, opens connections, etc.) If you use the java - Djava.security.policy=sun.security.provider.PolicyFileoption then the default implementation applies. Talking about Windows it must propably be a 1.3beta being used. Oliver ___ Oliver Fels| e-mail: IQena GmbH | [EMAIL PROTECTED] Team Manager JAVA-/IT-Security | http://www.iqena.com Friedrichshafen, Germany | --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
textfield to enter integer and float expressions
Hi, I'm developing a system for small IT businesses and I need to enter numbers into fields. Currently I use a JTextField to enter the number into, converting it to Integer or Double when needed. I want to implement a speciliazed version of JTextField which will evaluate integer expressions. So entering (3 * 14 + 2) / (5+6) will display (upon leaving the field) 4 Anyone familiar with Open Source Code to (partly) implement this? Joost Helberg PS: I don't understand why not all number-entering fields in all applications support this. It is so obvious! Applications with a pop-up calculator are so improductive! THANKS in advance -- Joost Helberg Unix consultants v v [EMAIL PROTECTED] OO developers \ / ### #### # >---X---< http://snow.nl # # # # # # # # / \ Snow B.V.## # # # # # # # ^ ^ Tel. 0418-65 # # # # # # # # Fax. 0418-653666### # # ## ## ## PGP PblKey fprnt=4D BD 6A 45 6A 86 81 59 0D BA 7D D4 B2 F8 63 34 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Question
Of course you can write a file - there's nothing magic about Applets. Set your browser's security to allow it. Most browsers are set to some set of high-security options by default. The other option is to sign your Applet; most browsers allow different security levels for signed (trusted) and unsigned Applets. Kantartzis V wrote: > you can read a file with an applet by instanciating a URL of type > "file://" , but you can not write into the file. > > On Thu, 4 Nov 1999, Bernardo Paz Betancourt wrote: > > > Applets can NOT open or write files, for security > > I had the same problem trying to acces to my data base in oracle by an applet. > > The reason could be this restriction see documentation on applet restrictions. > > > > Bernardo > > > > At 09:57 a.m. 04/11/99 +0800, you wrote: > > > > > >Dear Sirs: > > >I am junior JAVA programmer, one question need your help. > > >I had RedHat Linux 6.0 with Java 1.2 SDK and PostgreSQL database, > > >I had copy the postgresql.jar into /jdk1.2/jre/lib/ext. > > > > > >then, I wrote an applet just query the data from PostgreSql database, > > >and show the result on screen, then created the test.html file, > > >and include the class , when I use appletviewer test.html, I can see > > >the data everything is OK, > > > > > >but when I put the html on my web, then I can see the applet area show > > >"Can't find Database Driver .. postgresql.drive" > > >It's anything Linux envirounment setting error? > > >Tks! > > > > > >Jones Chang > > > > > > > > >-- > > >To UNSUBSCRIBE, email to [EMAIL PROTECTED] > > >with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > > > > > > > __ > > Dr. Bernardo Paz Betancourt > > TROPANDES Project > > casilla 415 > > tel/Fax: (591) 2 41.18.34 > > http://www.megalink.com/tropandes > > La Paz - Bolivia > > > > > > -- > > 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]
Netscape and applets
I have a strange problem with Netscape on my RH6.1 system. I have a class called myapp.server.FrontEnd which extends Applet (naturally). I have a reference to it in a .html file: and it seems to work fine with appletviewer. However, as soon as I load it with Netscape I get the following in the status bar: Applet myapp.server.FrontEnd exception: java.lang.ClassCastException myapp.server.FrontEnd is not an applet I'm stumped. I've written other applets for use with Netscape which have worked fine. Has anyone any suggestions as to where I should look for a solution? Also, since I don't know if the problem is mine or Netscape's, is there another browser out there for Linux which will run applets? -- Regards, Paul Paul Gearon [EMAIL PROTECTED] Catapultam habeo. Nisi pecuniam omnem mihi dabis, ad caput tuum saxum immane mittam. (Translation from latin: "I have a catapult. Give me all the money, or I will fling an enormous rock at your head.") -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Classpath for e.g. Mail.jar
Hi I`m using jdk1.2prev2 under Slackware 4.0. I`ve made a prog to send mail`s and I need some funtions from javax.mail.* I can compile my prog with the javac -classpath ../mail.jar funktion. Where do I have to set a classpath for other libs ? MfG Dirk
Re: Jdk1.2 and Hotjava 3.0
Martin Olveyra wrote: > > I know it is recommended to run Hotjava 3.0 with jdk1.1.6, but > has somebody been able to run Hotajava 3.0 with jdk1.2? For me it stops while showing the splash screen, throwing an exception that says that it can't find some file that is right there. Oh well, not that I care much, I would rather prefer that Sun make up its mind about releasing the HotJava Browser Bean under the SCSL as it announced many months ago. I regret not having a good pure-Java browser component to add to my apps. I've tried Ice (http://www.icesoft.no) but the current release candidate is still to buggy, beside costing $5k for a source license. Also I would like to know if Sun intend to make a Swing-compatible version of the Browser Bean, since it looks like the current version uses a heavyweight component which we all know is a big no-no when doing a Swing-based application. -- Ugo Cei - [EMAIL PROTECTED] Fuori Orario Srl - Galleria Manzoni 15, 27100 Pavia - Italy Tel: +39.382.22651, Fax: +39.382.539467 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
JNI-Linking/loading .so objects used by c code
Hi everybody, I am having trouble linking/loading *.so objects that are used by my C++ code. Does anybody know how should i load them?? I have a java program and a C++ file. Using JNI i created .so object and loaded using loadLibrary() in my java program. Now the problem is i can not access my .so objects(not the one i created using JNI but the other one that is used by my C++ code) from my java program it hangs there and does not do anything!! So i tried to load all other .so objects used by C++ code using loadLibrary in my java program but then i get the errors shown at the end. How do i include other .so objects used by my C++ file?? I tried to use loadLibrary() to load other .so objects but it can not load one of my .so object!! Is this the right way to deal with it?? If so why it is not loading it?? /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so: undefined symbol: __tiQ23RTI9Exception (libfedtime.so) java.lang.UnsatisfiedLinkError: no fedtime in shared library path Error loading libfedtime.so SIGSEGV 11* segmentation violation stackbase=0x413e3000, stackpointer=0x413e2150 Full thread dump: "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW) prio=5 javax.swing.TimerQueue.run(TimerQueue.java:236) java.lang.Thread.run(Thread.java) "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, state:CW) prio=9 java.lang.Object.wait(Object.java) sun.awt.AWTFinalizer.run(AWTFinalizer.java:40) "Screen Updater" (TID:0x40668db0, sys_thread_t:0x41445e0c, state:CW) prio=4 java.lang.Object.wait(Object.java) sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW) prio=5 java.lang.Thread.run(Thread.java) "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R) prio=5 "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c, state:R) prio=5 *current thread* java.lang.Runtime.loadLibrary(Runtime.java) java.lang.System.loadLibrary(System.java) FSDBconnect.(FSDBconnect.java:22) I know i don't have any trouble with my shared object used by C++ code because i tried to run my C++ part from test C++ code and everything works fine. So i believe i am missing how should i load or include those .so objects used by C++ code? -Raj -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Classpath for e.g. Mail.jar
Hi I`m using jdk1.2prev2 under Slackware 4.0. I`ve made a prog to send mail`s and I need some funtions from javax.mail.* I can compile my prog with the javac -classpath ../mail.jar funktion. Where do I have to set a classpath for other libs ? MfG Dirk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: textfield to enter integer and float expressions
I was reading in Graphica Java 2 last night that a calculator is currently sitting in the javax.swing.pending package, all things there are being evaluated for a next release. And I think 1.3 will support it. If what you are talking about is have to behave like a spreadsheet, would it be possible to add a listener to that JTextField so when focus is lost, it will compute the current equation and give a result in the box? -Riyad Joost Helberg wrote: > Hi, > > I'm developing a system for small IT businesses and I need to enter > numbers into fields. > > Currently I use a JTextField to enter the number into, converting it > to Integer or Double when needed. > > I want to implement a speciliazed version of JTextField which will > evaluate integer expressions. > > So entering > (3 * 14 + 2) / (5+6) > > will display (upon leaving the field) > 4 > > Anyone familiar with Open Source Code to (partly) implement this? > > Joost Helberg > > PS: I don't understand why not all number-entering fields in all > applications support this. It is so obvious! Applications with a > pop-up calculator are so improductive! > > THANKS in advance > > -- > Joost Helberg Unix consultants v v > [EMAIL PROTECTED] OO developers \ / > ### #### # >---X---< > http://snow.nl # # # # # # # # / \ > Snow B.V.## # # # # # # # ^ ^ > Tel. 0418-65 # # # # # # # # > Fax. 0418-653666### # # ## ## ## > PGP PblKey fprnt=4D BD 6A 45 6A 86 81 59 0D BA 7D D4 B2 F8 63 34 > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- [ Riyad Kalla ] [ [EMAIL PROTECTED] ] [ CS - Major ] [ University of Arizona ] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Re. about Class class
SABYASACHI S GUPTA wrote: > Yup I figured that out ... > but how do I do a typecast when I have the class name in a String > variable during runtime. (I do NOT know the class name to typecast). You don't really have to typecast. Just call your intended method via reflection: ie: use Class.forName() to get your meta-class object (or obj.getClass() if you have the object) and then try using your_class.getMethod().invoke() - but you need to know your parameter classes. Study the rflection specs in the documentation bundle (under the Features section), it should help. -- dimitris -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
RE: JNI-Linking/loading .so objects used by c code
When you create the shared library with your JNI call do you link it with the shared libraries it requires? Say you have libmyroutine.so and you are trying to create libmyjni.so: g++ --shared ... -o libmyjni.so -L/appropriate/path -lmyroutine Now when you ldd libmyjni.so it should show a dependency on libmyroutine.so -K > -Original Message- > From: Raj Patel [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 05, 1999 8:51 AM > To: java-linux Mailing List > Subject: JNI-Linking/loading .so objects used by c code > > > Hi everybody, > I am having trouble linking/loading *.so > objects that are used by my C++ code. Does anybody know how should i > load them?? > > I have a java program and a C++ file. > Using JNI i created .so object and loaded using loadLibrary() > in my java > program. > Now the problem is i can not access my .so objects(not the > one i created > using JNI but the other one that is used by my C++ code) from my java > program it hangs there and does not do anything!! So i tried to load > all other .so objects used by C++ code using loadLibrary in my java > program but then i get the errors shown at the end. > > How do i include other .so objects used by my C++ file?? > I tried to use loadLibrary() to load other .so objects but it can not > load one of my .so object!! Is this the right way to deal > with it?? If > so why it is not loading it?? > > /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so: > undefined symbol: __tiQ23RTI9Exception (libfedtime.so) > java.lang.UnsatisfiedLinkError: no fedtime in shared library path > Error loading libfedtime.so > SIGSEGV 11* segmentation violation > stackbase=0x413e3000, stackpointer=0x413e2150 > > Full thread dump: > "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW) > prio=5 > javax.swing.TimerQueue.run(TimerQueue.java:236) > java.lang.Thread.run(Thread.java) > "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, > state:CW) > prio=9 > java.lang.Object.wait(Object.java) > sun.awt.AWTFinalizer.run(AWTFinalizer.java:40) > "Screen Updater" (TID:0x40668db0, > sys_thread_t:0x41445e0c, state:CW) > prio=4 > java.lang.Object.wait(Object.java) > sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) > sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) > "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW) > prio=5 > java.lang.Thread.run(Thread.java) > "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R) > prio=5 > "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c, > state:R) prio=5 *current thread* > java.lang.Runtime.loadLibrary(Runtime.java) > java.lang.System.loadLibrary(System.java) > FSDBconnect.(FSDBconnect.java:22) > > I know i don't have any trouble with my shared object used by C++ code > because i tried to run my C++ part from test C++ code and everything > works fine. So i believe i am missing how should i load or include > those .so objects used by C++ code? > > -Raj > > > -- > 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: Re. about Class class
SABYASACHI S GUPTA wrote:
>
> Yup I figured that out ...
> but how do I do a typecast when I have the class name in a String
> variable during runtime. (I do NOT know the class name to typecast).
Ah, I guess I really did understand your original question and gave
decent advice :-). If you're trying to learn your way around an unknown
class, the Reflection API is the way to go.
Since your questions relate to Java development and not to Java on
Linux, you may find a better source of help in the comp.lang.java.help
newsgroup.
Nathan
> On Thu, 4 Nov 1999, Nathan Meyers wrote:
>
> > Nathan Meyers wrote:
> > > SABYASACHI S GUPTA wrote:
> > > >
> > > > public class saby {
> > > >
> > > > public static void main(String args[])
> > > > {
> > > >
> > > > String s = "myclass";
> > > > Class c = new Class();
> > > > try {
> > > >
> > > > c = Class.forName(s);
> > > >
> > > > Object b = c.newInstance();
> > > > b.method(); // I know this is an error..so what to do?
> > >
> > > You need to use the reflection API. Use b.getMethod() to get a handle
> > > (of type Method) for the method, then use Method.invoke() to run that
> > > method.
> >
> > Please ignore previous dumb advice :-). You would use the Reflection
> > API on c (the Class instance). You need a typecast to use b (the myclass
> > instance).
> >
> > Nathan
> >
>
> --
> 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: JNI-Linking/loading .so objects used by c code
Burkhart,Kelly wrote: > When you create the shared library with your JNI call do you link it with > the shared libraries it requires? > > Say you have libmyroutine.so and you are trying to create libmyjni.so: > > g++ --shared ... -o libmyjni.so -L/appropriate/path -lmyroutine > > Now when you ldd libmyjni.so it should show a dependency on libmyroutine.so > I already have added the way you suggested but it's not finding it and just hangs there when it needs to go to that .so object required by C++ code -raj > > -K > > > -Original Message- > > From: Raj Patel [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 05, 1999 8:51 AM > > To: java-linux Mailing List > > Subject: JNI-Linking/loading .so objects used by c code > > > > > > Hi everybody, > > I am having trouble linking/loading *.so > > objects that are used by my C++ code. Does anybody know how should i > > load them?? > > > > I have a java program and a C++ file. > > Using JNI i created .so object and loaded using loadLibrary() > > in my java > > program. > > Now the problem is i can not access my .so objects(not the > > one i created > > using JNI but the other one that is used by my C++ code) from my java > > program it hangs there and does not do anything!! So i tried to load > > all other .so objects used by C++ code using loadLibrary in my java > > program but then i get the errors shown at the end. > > > > How do i include other .so objects used by my C++ file?? > > I tried to use loadLibrary() to load other .so objects but it can not > > load one of my .so object!! Is this the right way to deal > > with it?? If > > so why it is not loading it?? > > > > /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so: > > undefined symbol: __tiQ23RTI9Exception (libfedtime.so) > > java.lang.UnsatisfiedLinkError: no fedtime in shared library path > > Error loading libfedtime.so > > SIGSEGV 11* segmentation violation > > stackbase=0x413e3000, stackpointer=0x413e2150 > > > > Full thread dump: > > "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW) > > prio=5 > > javax.swing.TimerQueue.run(TimerQueue.java:236) > > java.lang.Thread.run(Thread.java) > > "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, > > state:CW) > > prio=9 > > java.lang.Object.wait(Object.java) > > sun.awt.AWTFinalizer.run(AWTFinalizer.java:40) > > "Screen Updater" (TID:0x40668db0, > > sys_thread_t:0x41445e0c, state:CW) > > prio=4 > > java.lang.Object.wait(Object.java) > > sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) > > sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) > > "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW) > > prio=5 > > java.lang.Thread.run(Thread.java) > > "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R) > > prio=5 > > "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c, > > state:R) prio=5 *current thread* > > java.lang.Runtime.loadLibrary(Runtime.java) > > java.lang.System.loadLibrary(System.java) > > FSDBconnect.(FSDBconnect.java:22) > > > > I know i don't have any trouble with my shared object used by C++ code > > because i tried to run my C++ part from test C++ code and everything > > works fine. So i believe i am missing how should i load or include > > those .so objects used by C++ code? > > > > -Raj > > > > > > -- > > 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: Security (was Re: policytool)
This list is full of stuff that's not Linux specific. >>>applications do not make use of the java.policy file per default in >>>the Linux 1.2 version. RMI is an exception to this rule. Since Java 1.1, RMI has required a security policy of some sort because it can load remote classes by default. In Java2, you have to have the right policy file to make RMI work. See the rmi-users list and RMI documentation for more info. [EMAIL PROTECTED] . . . .. . . . http://www.media.mit.edu/~nelson/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: JNI-Linking/loading .so objects used by c code
Check the names of your native methods in .java, .h and .cxx files Are they the same (with respect to JNI requirements)? Jacob Nikom Raj Patel wrote: > > Hi everybody, > I am having trouble linking/loading *.so > objects that are used by my C++ code. Does anybody know how should i > load them?? > > I have a java program and a C++ file. > Using JNI i created .so object and loaded using loadLibrary() in my java > program. > Now the problem is i can not access my .so objects(not the one i created > using JNI but the other one that is used by my C++ code) from my java > program it hangs there and does not do anything!! So i tried to load > all other .so objects used by C++ code using loadLibrary in my java > program but then i get the errors shown at the end. > > How do i include other .so objects used by my C++ file?? > I tried to use loadLibrary() to load other .so objects but it can not > load one of my .so object!! Is this the right way to deal with it?? If > so why it is not loading it?? > > /usr/safdevel/RTI13v6/rti/lang/C++/lib/Linux-2.0/libfedtime.so: > undefined symbol: __tiQ23RTI9Exception (libfedtime.so) > java.lang.UnsatisfiedLinkError: no fedtime in shared library path > Error loading libfedtime.so > SIGSEGV 11* segmentation violation > stackbase=0x413e3000, stackpointer=0x413e2150 > > Full thread dump: > "TimerQueue" (TID:0x406690a0, sys_thread_t:0x41487e0c, state:CW) > prio=5 > javax.swing.TimerQueue.run(TimerQueue.java:236) > java.lang.Thread.run(Thread.java) > "AWT-Finalizer" (TID:0x406694a0, sys_thread_t:0x41466e0c, state:CW) > prio=9 > java.lang.Object.wait(Object.java) > sun.awt.AWTFinalizer.run(AWTFinalizer.java:40) > "Screen Updater" (TID:0x40668db0, sys_thread_t:0x41445e0c, state:CW) > prio=4 > java.lang.Object.wait(Object.java) > sun.awt.ScreenUpdater.nextEntry(ScreenUpdater.java:70) > sun.awt.ScreenUpdater.run(ScreenUpdater.java:90) > "AWT-Motif" (TID:0x4065b668, sys_thread_t:0x41424e0c, state:CW) > prio=5 > java.lang.Thread.run(Thread.java) > "AWT-Input" (TID:0x4065b628, sys_thread_t:0x41403e0c, state:R) > prio=5 > "AWT-EventQueue-0" (TID:0x4065c3e8, sys_thread_t:0x413e2e0c, > state:R) prio=5 *current thread* > java.lang.Runtime.loadLibrary(Runtime.java) > java.lang.System.loadLibrary(System.java) > FSDBconnect.(FSDBconnect.java:22) > > I know i don't have any trouble with my shared object used by C++ code > because i tried to run my C++ part from test C++ code and everything > works fine. So i believe i am missing how should i load or include > those .so objects used by C++ code? > > -Raj > > -- > 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]
unsubscribe
unsubscribe
Re: Jdk1.2 and Hotjava 3.0
Ugo Cei wrote For me it stops while showing the splash screen, throwing an exception that says that it can't find some file that is right there. At first, I had exactly the same problems, but with some changes I could solve them. Oh well, not that I care much, I would rather prefer that Sun make up its mind about releasing the HotJava Browser Bean under the SCSL as it announced many months ago. I regret not having a good pure-Java browser component to add to my apps. I agree with you. HotJava 3.0 was not what I expected. Anyway, if you want to run it, here is how I did: -Copy the file Browser.jar to /jre/lib/ext -Edit the hotjava launcher script: -change java by oldjava -remove the actual -classpath arguments and substitute them by /jre/lib/ext/Browser.jar:/lib/dt.jar:/jre/lib/rt.jar -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
