//public String[][] getParameterInfo() { //return infoString; void list1_actionPerformed(ActionEvent e) { String selection1; selection1 = list1.getSelectedItem(); list1.remove(selection1); list2.add(selection1); } void list2_actionPerformed(ActionEvent e) { String selection1; selection1 = list2.getSelectedItem(); list2.remove(selection1); list1.add(selection1); } void buttonControl1_actionPerformed(ActionEvent e) { String selection1; selection1 = list1.getSelectedItem(); list1.remove(selection1); list2.add(selection1); } void buttonControl2_actionPerformed(ActionEvent e) { String selection1; selection1 = list2.getSelectedItem(); list2.remove(selection1); list1.add(selection1); } } //} ok. so, i've put my class file and a .jar, and a .zip file all in one folder. i've tried using deployment wizard to make these files. i'm having no luck. currently, i get this message at the bottom of the browser window that says: Load: sortboxes.sortboxes can't be instantiated i chose applet when first making the project. i tried making it choosing class. wasn't able to get it to work that way...now i'm totally confused. i've tried messing w/the ARCHIVE, CODEBASE and CODE attributes, but i've had no luck. i keep looking for answers, and no luck. thanks for any help. please email if you have any questions. and if you can try to answer in easy terms that would be helpful.
Kelly, Your problem is that your class is importing and using these two packages:
These are sets of classes that were created by Borland and thus are not part of the common Java environment. To get your class to run as an application outside of JBuilder you would have to add these packages to your CLASSPATH, to get your class to run as an applet you would have these packages on the server with your classes and if they are in a JAR file, add that JAR file to your ARCHIVE attribute. Be wary of using non-standard packages (i.e. packages that do not start with java. ) When you distribute your classes, you will need to distribute the non-standard classes along with the classes you created. Did you write all of the code yourself, or did you have JBuilder create some of it? I would think that JBuilder did some kind of automatic code generation or GUI building to use a non-standard class provided by Borland... just another reason not to use JBuilder to write code... ( Sorry, just a personal peeve. My company is using that wonder-of-bloated-code JBuilder...) HTH, -Nate P.S. - You are also using some Swing components... most browsers have an old version of the JRE and are not able to run applets that use Swing components unless it is using the Java Plugin from Sun. [This message has been edited by Nathan Pruett (edited February 28, 2001).]
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
kelly rice
Greenhorn
Joined: Feb 27, 2001
Posts: 2
posted
0
thanks for your reply. i actually just figured this out an hour or so ago. i'm trying to work w/layout, and it's been really frustrating. i've switched my controls to awt. just having trouble getting controls to show up. i'm just hoping that after i change all this over; i'll be able to view the applet outside of jbuider(*fingers crossed*). i'm not a big fan of jbuilder either. why import crap into your project that you can't even use in real life? to answer your question: some of that code was me and some of it was jbuilder. i'm familiar w/programming...just not in java.