Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2008, 12:19 PM
Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 0
quickfingers is on a distinguished road
Default Could some plz tell me how to write a stand alone
Well the title says it just try to make it very simple so I can follow it
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 06-24-2008, 12:38 PM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
What you mean. Looking to write a standalone application?
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-24-2008, 03:42 PM
sukatoa's Avatar
Senior Member
 
Join Date: Jan 2008
Location: Cebu City, Philippines
Posts: 540
Rep Power: 3
sukatoa is on a distinguished road
Send a message via Yahoo to sukatoa
Default
Quote:
Could some plz tell me how to write a stand alone
Well the title says it just try to make it very simple so I can follow it
Like a clock? it could stand alone as long as the Operating System still operates....
__________________
A specific, detailed, simple, well elaborated, and "tested before asking" question may gather more quick replies. hopefully
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 06-24-2008, 07:16 PM
Niveditha's Avatar
Senior Member
 
Join Date: May 2008
Posts: 307
Rep Power: 2
Niveditha is on a distinguished road
Send a message via Skype™ to Niveditha
Default

be specific on what u want mr/ms quickfingers.
what type of standalone application r u looking for?

Our question is straight forward what all things do u want to implement in your application, as u know there are many ways of doing same thing like for GUi we can use swing or awt or swt or jide etc etc.
__________________
To finish sooner, take your own time....
Nivedithaaaa
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 06-24-2008, 07:19 PM
Member
 
Join Date: Feb 2008
Posts: 45
Rep Power: 0
new_2_java is on a distinguished road
Default
you mean something like this:

Code:
public class IamStandAlone {
     public static void main (String[] arg) {
          System.out.println("I am a stand alone program! haha");
     }
}
Bookmark Post in Technorati
Reply With Quote
  #6 (permalink)  
Old 06-24-2008, 07:45 PM
Nicholas Jordan's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Southwest
Posts: 1,018
Rep Power: 3
Nicholas Jordan is on a distinguished road
Default
That is a standalone, what is your question.

( fun with newbies! )
__________________
Introduction to Programming Using Java.
Cybercartography: A new theoretical construct proposed by D.R. Fraser Taylor
Bookmark Post in Technorati
Reply With Quote
  #7 (permalink)  
Old 06-25-2008, 12:19 AM
serjant's Avatar
Senior Member
 
Join Date: Jun 2008
Location: Ukraine,Zaporozhye
Posts: 486
Rep Power: 2
serjant is on a distinguished road
Send a message via ICQ to serjant Send a message via Skype™ to serjant
Default
I think he means to create the screenlets or widgets in java for the desktop.Isn't it true?
Bookmark Post in Technorati
Reply With Quote
  #8 (permalink)  
Old 06-25-2008, 06:24 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Or may be looking to create an executable file for any OS!
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #9 (permalink)  
Old 06-25-2008, 06:34 AM
Zosden's Avatar
Senior Member
 
Join Date: Apr 2008
Posts: 386
Rep Power: 2
Zosden is on a distinguished road
Default
put it in a jar.
__________________
My IP address is 127.0.0.1
Bookmark Post in Technorati
Reply With Quote
  #10 (permalink)  
Old 06-25-2008, 06:51 AM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
Originally Posted by serjant View Post
I think he means to create the screenlets or widgets in java for the desktop.Isn't it true?
Wow, I'd never thing of an applet/or screenlet as a standalone. I see the "hello world" as a sample, no GUI, nothing fancy.

If the OP wants something fancy, he's got to enlighten us.
Bookmark Post in Technorati
Reply With Quote
  #11 (permalink)  
Old 06-27-2008, 06:28 AM
Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 0
quickfingers is on a distinguished road
Default
Well I know how to write applets very well just would like to have a stand alone run on my computer without the help of a Applet because I know how to write classes just don't know how to get it to run without needing a applet.
Bookmark Post in Technorati
Reply With Quote
  #12 (permalink)  
Old 06-27-2008, 06:33 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
With your post I really confused. Without help of an Applet, you want to run an applet class. ???
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #13 (permalink)  
Old 06-27-2008, 06:48 AM
Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 0
quickfingers is on a distinguished road
Default
All I want to do is make so the person would have to download it to play instead playing online.

(Hope I am clear this time )
Bookmark Post in Technorati
Reply With Quote
  #14 (permalink)  
Old 06-27-2008, 06:55 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
To run an applet you need a browser, even on off line. So what you can do it, add your application in a download link, may be as a zip file. Then user have to download it and play.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #15 (permalink)  
Old 06-27-2008, 06:57 AM
Member
 
Join Date: Dec 2007
Posts: 19
Rep Power: 0
quickfingers is on a distinguished road
Default
Thanks for the help now just need to figure out how not to make all my code visible to the user
Bookmark Post in Technorati
Reply With Quote
  #16 (permalink)  
Old 06-27-2008, 07:03 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Since applet use the class file your code not visible to the user directly. But using a decompiler can see the code.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #17 (permalink)  
Old 06-27-2008, 07:21 AM
Alan-LB's Avatar
Member
 
Join Date: Jun 2008
Location: Junee, NSW, Australia
Posts: 19
Rep Power: 0
Alan-LB is on a distinguished road
Send a message via Yahoo to Alan-LB
Default
Possible he means a program that will run by itself without needing a browser - ie a stand-alone program not an applet.

He would need to make a jar file as suggested by Zosden which could then be downloaded by a user and executed by itself.

If he wants to make all his code visible to the user why doesn't he put the source code as text on a web page or send the source code files packed in the jar file? Maybe he doesn't know the dirrerence between an executable program and source code.

I am not clear as to what he really wants - I think that he doesn't know either. Maybe his fingers are too quick and his brain too slow for him to be able to express himself clearly

Alan.
__________________
There are 10 types of people - those who understand binary and those who don't!!
Today is the Beta version of Tomorrow!!

Last edited by Alan-LB; 06-27-2008 at 07:24 AM.
Bookmark Post in Technorati
Reply With Quote
  #18 (permalink)  
Old 06-27-2008, 07:31 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
Originally Posted by Alan-LB View Post
If he wants to make all his code visible to the user why doesn't he put the source code as text on a web page or send the source code files packed in the jar file? Maybe he doesn't know the dirrerence between an executable program and source code.
I'm with you on this. Mainly I think he doesn't know what is jar file, and a source code(class file). Because I can't see any attempt on jar.

If he wants to run the application on the browser, if he puts complete code as a zip, as I suggested earlier, it's not easy to hide the code from the user.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
  #19 (permalink)  
Old 06-27-2008, 07:33 AM
Alan-LB's Avatar
Member
 
Join Date: Jun 2008
Location: Junee, NSW, Australia
Posts: 19
Rep Power: 0
Alan-LB is on a distinguished road
Send a message via Yahoo to Alan-LB
Default
What do you mean by "code". Are you talking about the executable program or the source code?

Alan
__________________
There are 10 types of people - those who understand binary and those who don't!!
Today is the Beta version of Tomorrow!!
Bookmark Post in Technorati
Reply With Quote
  #20 (permalink)  
Old 06-27-2008, 07:38 AM
Eranga's Avatar
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 7,523
Rep Power: 11
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
Default
I'm talking about the source code.
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
Someone helped you? their helpful post.
Help:Forums FAQ|How To Ask Questions The Smart WayResources:The Java Tutorials|Glossary for Java|NetBeans IDE|Sun DownloadsWeb:WritOnceTips:Is your IDE the best?|Which Application Server?
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are you using to write your code? CaptainMorgan New To Java 586 Today 03:58 AM
how to write onto a file mirage_87 New To Java 6 09-08-2009 04:54 PM
Stand O' Food Game Proyect piachens New To Java 1 03-24-2008 06:28 PM
How do i write this in java...? johnny7white New To Java 1 11-28-2007 08:05 PM
About bean:write yuchuang Web Frameworks 1 04-30-2007 04:31 PM


All times are GMT +2. The time now is 06:03 AM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org