Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Jacob Hoda

Greenhorn
+ Follow
since Apr 09, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jacob Hoda

I have an array list setup in my panel, I have another class that will do the adding to list on the panel.

In that second class how would I call and add items to the Arraylist on the panel without instantiating a new panel everytime?

Am I able to just refer to that arraylist and start adding?

Thanks.
15 years ago
I have a jdbc.class which executes queries etc.

I also have an application class.

When the app runs I'd like to to execute some methods in the jdbc to perform queries, how do I go about doing this?

I know how to call methods but I have to pass the connection paramter which has not been setup in my applicatoin class.

Thanks,
Thanks for you reply.
The problem is that I was supposed to run RMIREGISTRY on the server directory. I did not do that. I ran it on the main directory. It all works well now thank you for taking your time in replying to my message.
Jacob
16 years ago
I have a bare bone RMI program.
It all works fine when i use local host IE 127.0.0.1.
But now I'm testing it on a server.
I get java.lang.ClassNotFoundException on my Stub class. Even though its in the directory.
When I compiled i did javac -classpath . *.java
than created the stub from implementation file.. IE rmic -v1.2 ClassImpl
I than seperated my files into server and client (placed in sep folders)
uploaded to the server
ran rmiregistry 5544 which is the port i'm using
executed the server file and thats when i get the error of the stub not found.
Any help is appreciated.
Regards, Jacob
16 years ago
Thanks to all, yes that was the problem.
It works fine now, my RMI runs fine locally but have problems now with stubs when I run it on server. I will post a new thread for this.
Thanks.
16 years ago
I'm trying a bare bone RMI for testing.
When running the client side java file I get this exception:
java.rmi.MarshalException: error marshalling arguments; nested exception is:
java.io.NotSerializableException: java.lang.Object
This occurs when I'm calling a method with an object as a parameter.
I tried making that object serilizable but that didnt work.
Any help is appreicated.
Jacob
16 years ago