[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
forum.virtualchallengemeets.com • View topic - Trying to make a jar file?

Trying to make a jar file?

No, you can't have a sip of my Java.

Trying to make a jar file?

Postby klebian » Mon Apr 20, 2009 8:03 pm

Hi, I wrote a program as a study tool for memorizing stuff, for academic challenge, and a teammate asked me for the program. He does not have jcreator- he wants to be able to run my program by simply clicking on the file. I think that a jar file suits this purpose, because I know someone who has used a jar file to distribute his program without the user needing to open jcreator (which is a function that is obviously necessary for programs).

I searched # for how to create jar files, and was fairly thoroughly lost. I have 3 .java files (which I can obviously combine into 1 if necessary), and a .dat file from which input regarding the stuff being memorized is read. Can someone help me? I'd greatly appreciate it.
Thanks,
--Klebian
User avatar
klebian
Determined Spammer
 
Posts: 198
Joined: Tue Nov 28, 2006 11:47 pm

Re: Trying to make a jar file?

Postby Toojdwin » Tue Apr 21, 2009 9:49 pm

You could use a batch file, assuming you're on Windows.
Toojdwin
Typical User
 
Posts: 22
Joined: Mon Mar 23, 2009 9:31 pm
Location: Denton

Re: Trying to make a jar file?

Postby shrig94 » Sun Apr 26, 2009 10:47 am

yeah, .bat works well.

As an example, go to notepad:
type in the open document "command.com" without the quotation marks obviously
Save it as command.bat
You just made a command prompt, and it will work in schools as well, even with the command prompt disabled...
NS-355
M-348
CA-274
S-136
CS-160
Shri, AAA, Hirschi
shrig94
Incessant Spammer
 
Posts: 229
Joined: Tue May 20, 2008 2:31 pm

Re: Trying to make a jar file?

Postby MistaPotta » Mon Apr 27, 2009 3:56 pm

Irrelevant since 2007.
User avatar
MistaPotta
<sigh> No, I haven't uploaded that yet...
 
Posts: 567
Joined: Thu Oct 19, 2006 8:33 pm
Location: Deep in the heart of Helotes!

Re: Trying to make a jar file?

Postby klebian » Tue Apr 28, 2009 7:19 pm

Thanks! This is much clearer than other websites I found. Unfortunately, when I click on my jar file, I get the message "Failed to load Main-Class manifest attribute from C:\...filename.jar"
any idea what the problem may be?
User avatar
klebian
Determined Spammer
 
Posts: 198
Joined: Tue Nov 28, 2006 11:47 pm

Re: Trying to make a jar file?

Postby MistaPotta » Tue Apr 28, 2009 7:51 pm

Irrelevant since 2007.
User avatar
MistaPotta
<sigh> No, I haven't uploaded that yet...
 
Posts: 567
Joined: Thu Oct 19, 2006 8:33 pm
Location: Deep in the heart of Helotes!

Re: Trying to make a jar file?

Postby klebian » Tue Apr 28, 2009 8:01 pm

ah, i didn't have the right stuff in my manifest file. thanks very much, should work now =D
edit: it does work. thanks!
User avatar
klebian
Determined Spammer
 
Posts: 198
Joined: Tue Nov 28, 2006 11:47 pm


Return to UIL Computer Science

Who is online

Users browsing this forum: No registered users and 1 guest

cron