It is currently 19 Apr 2024, 02:19
   
Text Size

Is a Portable Version Possible?

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Is a Portable Version Possible?

Postby Huggybaby » 21 Sep 2009, 19:52

Is it possible to make a portable version of mtgforge so that it will run on machines that don't have Java installed?
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Is a Portable Version Possible?

Postby zerker2000 » 21 Sep 2009, 22:57

Eh? How do you get more portable than java?! I guess you could get a .jar>.exe compiler off somewhere on the internet, but I do not see why you cannot just install java on target machine.
O forest, hold thy wand'ring son
Though fears assail the door.
O foliage, cloak thy ravaged one
In vestments cut for war.


--Eladamri, the Seed of Freyalise
zerker2000
Programmer
 
Posts: 569
Joined: 09 May 2009, 21:40
Location: South Pasadena, CA
Has thanked: 0 time
Been thanked: 0 time

Re: Is a Portable Version Possible?

Postby Huggybaby » 21 Sep 2009, 23:24

Portable means running an app without installing it, along with all the registry entries, and menus, and shortcuts, and on and on. There are plenty of reasons not to install Java.
but I do not see why you cannot just install java on target machine.
I can, but I don't want to. So, my question remains.

I know it's possible anyway: http://www.pendriveapps.com/portable-ja ... lashdrive/
I just wanted to see if anyone here had thought about it. Java is a pig you know. When it updates, it downloads a new version without deleting the old one, so the versions accumulate. And it wants to autoupdate all the time. And it's not very fast. <edit> And it will install the Yahoo search bar if you're not paying attention. </edit>

There are good things about java, but there are plenty of bad things too.
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Is a Portable Version Possible?

Postby Chris H. » 21 Sep 2009, 23:29

There is another issue to consider, the minimum resolution supported by the program is 1024 x 768. While the game is playable on a screen this small, most people would want to have a larger screen.
Last edited by Chris H. on 22 Sep 2009, 11:27, edited 1 time in total.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: Is a Portable Version Possible?

Postby Huggybaby » 21 Sep 2009, 23:39

It looks like you can use JSmooth: http://jsmooth.sourceforge.net/features.php along with a JRE to make a standalone version that runs from an exe.
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Is a Portable Version Possible?

Postby DennisBergkamp » 22 Sep 2009, 01:44

There is another issue to consider, the minimum resolution supported by the program is 1024 x 7368. While the game is playable on a screen this small, most people would want to have a larger screen.
What Huggy meant is, is it possible to make a "portable" version, that can run on any PC / Mac without having Java installed.
But then again, a portable version of forge would be cool. I'd love to play it on my DS or iPod touch :)
Luckily, the PSP has Wagic, which is awesome.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Is a Portable Version Possible?

Postby nelyn » 23 Sep 2009, 06:33

Huggybaby wrote:It looks like you can use JSmooth: http://jsmooth.sourceforge.net/features.php along with a JRE to make a standalone version that runs from an exe.
I wonder if using this would eleminate the class error I posted about....
nelyn
 
Posts: 33
Joined: 20 Sep 2009, 16:14
Has thanked: 0 time
Been thanked: 0 time

Re: Is a Portable Version Possible?

Postby mtgrares » 23 Sep 2009, 17:57

The best "portable" version of Magic is probably Wagic. It is designed for a small screen and doesn't require Java.

Compiling a Java program into a "pure" executable file that doesn't require Java seems hard and complicated and JSmooth doesn't do that. It just creates a "Java wrapper" executable file that searches for the Java runtime library, so the Java program can run and act like a regular, non-Java program.

I know all of this is very technical and maybe a little confusing. Java requires a Java Runtime Library in order to run Java. So every computer, Windows, Mac, Linux has to have the Java Runtime Library installed in order to run a Java program. Transforming a Java program into a regular executable program that doesn't need the Java Runtime Library sounds very good but only commercial programs can really do it.

(Microsoft's .Net is the same as Java, it needs to have the runtime library installed in order to work. Plain executable files are quickly going out of style.)
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Is a Portable Version Possible?

Postby Huggybaby » 23 Sep 2009, 18:41

I understand it's only a wrapper, and I'm not asking for a true exe. As I read it, you can configure JSmooth to search the local folder for a JRE, so Java does not need to be installed, it just has to be present in the forge folder.
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Is a Portable Version Possible?

Postby silly freak » 23 Sep 2009, 19:23

so everything you want to avoid is really installing the JRE, but you don't mind having it on your hard disk?
I don't see the way in which this problem comes from forge. no matter how you get your JRE, you can always do java -jar to run forge (given the JRE is recent enough)

have I overlooked something?
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Is a Portable Version Possible?

Postby Huggybaby » 23 Sep 2009, 22:49

silly freak wrote:so everything you want to avoid is really installing the JRE, but you don't mind having it on your hard disk?
Yes, for the last time, that's what a portable app does.

silly freak wrote:I don't see the way in which this problem comes from forge.
Uh, because forge requires Java to be installed.

silly freak wrote:no matter how you get your JRE, you can always do java -jar to run forge (given the JRE is recent enough)
Do you use Windows? Because even if I open a command prompt (which would be antithetical to having a portable app) this wouldn't work.
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Is a Portable Version Possible?

Postby frwololo » 24 Sep 2009, 01:30

Huggybaby wrote: Java is a pig you know. When it updates, it downloads a new version without deleting the old one, so the versions accumulate. And it wants to autoupdate all the time. And it's not very fast. <edit> And it will install the Yahoo search bar if you're not paying attention. </edit>
Wow I thought I was the only one pissed off by that.
I was very angry the day I discovered Java was taking 1.5GB on my 40GB hard drive, because of not deleting old versions.
frwololo
DEVELOPER
 
Posts: 265
Joined: 21 Jun 2008, 04:33
Has thanked: 0 time
Been thanked: 3 times

Re: Is a Portable Version Possible?

Postby Huggybaby » 24 Sep 2009, 01:45

Yeah, I'm a fan of machine language myself, but only Steve Gibson seems to be using that any more. One utility to clean up all those old Java versions is here:
http://www.freewaregenius.com/2008/12/01/javara-update-java-and-remove-old-versions/
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Re: Is a Portable Version Possible?

Postby mtgrares » 26 Sep 2009, 20:43

Huggybaby wrote:I understand it's only a wrapper, and I'm not asking for a true exe. As I read it, you can configure JSmooth to search the local folder for a JRE, so Java does not need to be installed, it just has to be present in the forge folder.
Oops my mistake. I understand what you are going for. How to run a Java program without installing Java. I have used JSmooth and maybe I can get MTG Forge to run by including some Java files. The whole download would probably be 50-100MB but I'm not sure.

I use Java because it is the language that I know the best. While Java isn't perfect, it is very nice because it also runs on Mac's and Linux without any changes.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: Is a Portable Version Possible?

Postby Huggybaby » 26 Sep 2009, 23:49

Thanks. The latest JRE I have is JRE 6 u16, and it zips to less than 19 MB.
User avatar
Huggybaby
Administrator
 
Posts: 3205
Joined: 15 Jan 2006, 19:44
Location: Finally out of Atlanta
Has thanked: 696 times
Been thanked: 594 times

Next

Return to Forge

Who is online

Users browsing this forum: No registered users and 94 guests


Who is online

In total there are 94 users online :: 0 registered, 0 hidden and 94 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 94 guests

Login Form