Author |
Message |
Andrew S
|
Posted: Fri Aug 19, 2005 7:56 pm Post subject: How do I setup Crimson Editor to compile applets? |
|
|
I need to know how to get the user tool's set up so I can compile an applet. Thanks! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
wtd
|
|
|
|
|
Andrew S
|
Posted: Fri Aug 19, 2005 8:07 pm Post subject: (No subject) |
|
|
Yeah, I read through all those before I posted this...
Thanks for the quick response... but they say nothing of how to set it up in Crimson Editor, I would prefer that over cmd... I had it in school but I forget how... any ideas as to how to get CE to compile it for me? |
|
|
|
|
|
wtd
|
Posted: Fri Aug 19, 2005 9:04 pm Post subject: (No subject) |
|
|
Ah. Forgive me. I was apparently still waking up.
I haven't used Crimson Editor. If you're using Windows, I would strongly recommend you become comfortable with the command-line. |
|
|
|
|
|
Andrew S
|
Posted: Fri Aug 19, 2005 9:08 pm Post subject: (No subject) |
|
|
Heh, that's alright, I myself have been "up" since 5 this morning... yet I'm still asleep.
Hmmm... well okay, I guess I'll just have to wait until I got back to school to find out.
Thanks for your time though! |
|
|
|
|
|
[Gandalf]
|
Posted: Fri Aug 19, 2005 10:57 pm Post subject: (No subject) |
|
|
I answer only because I have had previous experience with Crimson Editor, and it is a good editor. They use it at my school too (where do you go?)
From what I remember, there should be a 'tools' or 'options' menu, and somewhere there you should have a choice to locate the compiler. If that's not enough then I will check the other computer (with it installed). |
|
|
|
|
|
wtd
|
Posted: Fri Aug 19, 2005 11:15 pm Post subject: (No subject) |
|
|
In any case, command-line knowledge is a good investment. |
|
|
|
|
|
Andrew S
|
Posted: Sun Aug 21, 2005 8:53 am Post subject: (No subject) |
|
|
Well, I knew of those preferences from school (St. Mary CSS in Pickering).
I had previously set up the execute byte code and the complie byte code commands, but I couldn't remember how to get the applet one to work.
I think I found the actual Java Applet .exe file (appletviewer), but I wasn't sure on the "Argument" or "Initial Dir" values.
If you could tell me those, and even just double check on that .exe file, I would appriciate that.
Thanks for your time! |
|
|
|
|
|
Sponsor Sponsor
|
|
|
[Gandalf]
|
Posted: Sun Aug 21, 2005 6:08 pm Post subject: (No subject) |
|
|
Sorry, I've never set it up for Applets, only used it for compile and execute. I only have some experience with putting applets on websites.
Appletviewer, is the 'offline' applet tester. I used it once to test my applet out, but I think I just dragged the .class file onto the .exe .
Someone else can probably help you out more though. |
|
|
|
|
|
Andrew S
|
Posted: Sun Aug 21, 2005 6:35 pm Post subject: (No subject) |
|
|
Thanks for your help!
I guess I'll just wait then. |
|
|
|
|
|
Xurcroh
|
Posted: Fri Oct 28, 2005 9:59 pm Post subject: (No subject) |
|
|
Open Crimson editor
Go to tools -> Confg. User Tools
Select One of the Empty User Tools
To compile
Menu Text:Compile
Command:C:\j2sdk1.4.2_09\bin\javac.exe
Argument:$(FileName)
Initial Dir:$(FileDir)
Hotkey:F1 (Use whatever hotkey you want, ctrl + f7 , etc)
At the bottom i only have "Save before execute" box checked
Select another Empty Tool
To Run
Menu Text:Run
Command:C:\j2sdk1.4.2_09\bin\java.exe
Argument:$(FileTitle)
Initial Dir:$(FileDir)
Hotkey:F2(use w/e you want here)
No boxes are checked at the bottom
Basically I compile all my code first then run |
|
|
|
|
|
[Gandalf]
|
Posted: Fri Oct 28, 2005 10:53 pm Post subject: (No subject) |
|
|
Don't revive old topics...
You cannot 'execute' applets like you would an application, you have to create an html file using it first. If you have more than one class you will need to archive them all into a jar. |
|
|
|
|
|
1of42
|
Posted: Sun Oct 30, 2005 12:27 am Post subject: (No subject) |
|
|
[Gandalf] wrote: Don't revive old topics...
You cannot 'execute' applets like you would an application, you have to create an html file using it first. If you have more than one class you will need to archive them all into a jar.
That's not precisely true afaik - you can use Sun's Applet Viewer to view the applet without an HTML file - I think. |
|
|
|
|
|
rizzix
|
Posted: Sun Oct 30, 2005 11:41 am Post subject: (No subject) |
|
|
and if designed correctly.. u can also embed an applet (JApplet) into a SWING app. |
|
|
|
|
|
[Gandalf]
|
Posted: Sun Oct 30, 2005 5:30 pm Post subject: (No subject) |
|
|
1of42 wrote: That's not precisely true afaik - you can use Sun's Applet Viewer to view the applet without an HTML file - I think.
I know of the AppletViewer, but the way he has it set up is for java.exe (for applications), not appletviewer.
As for what rizzix said, that is one thing I did not know and is beyond me .
*edit* Right, I forgot to mention that even for AppletViewer you need an html file. |
|
|
|
|
|
|