Graham King

Greenhorn
+ Follow
since Oct 30, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Graham King

I'm using ant on the command line, just as it comes out of the box, except that i've added ANT_HOME to my env. variablies.

My application server is jBoss, with JAVA_HOME and JBOSS_HOME added to env. variables as well.
Right, I've sorted out this issue, I had the path to the .class files wrong.

Still getting the javax.naming.NameNotFoundException: cs02gkStudentHomeRemote not bound problem though.

Any help is really really would appreciate!
I have just examined the contents of the jar file which is producded my doing "ant" and i've noticed that only the manifest, ejb-jar and jboss files are in there, and no beans.

Obviously this is the cause of the issue, but any idea how i solve it? Could it be something wrong with the descriptor?
I've just noticed that the exception is being thrown by this line:



I have this in my ejb.jar-xml:


and this in my jboss.xml
Hi,

I'm a total newbie to EJB and i'm try to do some simple stuff. Add a student to a database, find him by primary key and remove him. I'm try to do the adding bit atm, but i'm getting a error.

I'm not really sure what this means or how to fix it, I'm willing to post any code that people want to see.

Thanks in advance
assuming that I know where ie is stored and the page that I want to load is stored how would I use System.exec?
19 years ago
Hi,

I have a local html file which I want to open in the systems web browser but I want it to do so when a button is clicked in my java application. The button is created and works correctly but does anyone know how to launch the browswer and open the html file?

Many thanks
19 years ago
Hi,

I have a program which i can compile and run using javac and java under windows, becuase i have set the CLASSPATH windows enviromental variable correctly.

I can't seem to do the same in netbeans.

Can someone please tell me either how to set the CLASSPATH for both compilation and execution in netbeans, or preferably for my ease how to get netbeans to use the system enviromental variables rather than its own?

Many thanks
Hi,

I've downloaded and installed these two packages:
NetBeans IDE + J2SE SDK
J2EE 1.4
from here

I'm trying to get into deveolping and using EJB (what i understand is part of J2EE) but whenever i have a file with I get an "package javax.ejb does not exist"

Have i missed a stage in the installation...such as adding J2EE to my enviromental variables?

Could someone please help?

Thanks in advance
Unfortunetly I have to go to work and I've not had time to test out your code, but dude, if that works...I'm gonna have to buy u an e-beer!!

I'll let u know how it goes!
19 years ago
Hi,

From a java program I need to submit information which is entered into a javascript form textarea and submitted via a submit command.

The webpage in question is: http://pgp.mit.edu/.

I have already managed to do the "Extract a key" thing using URL class in java but now I need to "Submit a key"

Does anyone have an idea how to do this? I guess the difference is that with "Extract a key" all of the info is encoded in the URL, with "Submit a key" it is not.

Oh, just one final note, obviously I can not change the javascript, but the java...i'll give it a sex change if it helps!

Any help would be greatly appreciated.

Thanks
19 years ago
Hi,

I'm cacheing a password for a variable amount of time (using a Date object.

I have two questions.

If I do


and the minutes are 46-59 does it automatically increment the hour and minus 60 from the minutes?

Also, how do I get the system to effectively know when the time is up?

Any help on this would be greatly appreciated!
19 years ago
I have a method which is passed a String.
I wanted to use that String as the name of a component ( a jLabel ) so that I can do, if the string is "hello",

Is this possible? and if so how?
Cheers
20 years ago
Hi,
I have a card layout on a panel Card_Panel, and two cards within this called Name_TextField_Panel and Name_Combo_Panel.
How can I actually change between the two panels, i don't really understand come of the things that have been said about it in previous threads.
Here's my code [i'm using netbeans]

any help would be great
Thanks
20 years ago
Hey, can someone please tell me how to center a jFrame on the screen rather than have it run in the top left?
Also if its code, where do i need to put it? Constructor?
20 years ago