Is a Portable Version Possible?
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Is a Portable Version Possible?
by 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?
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Is a Portable Version Possible?
by 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
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?
by 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.
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.
I can, but I don't want to. So, my question remains.but I do not see why you cannot just install java on target machine.
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.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Is a Portable Version Possible?
by 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.
-
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?
by 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.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Is a Portable Version Possible?
by DennisBergkamp » 22 Sep 2009, 01:44
What Huggy meant is, is it possible to make a "portable" version, that can run on any PC / Mac without having Java installed.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.
But then again, a portable version of forge would be cool. I'd love to play it on my DS or iPod touch
![Smile :)](./images/smilies/icon_smile.gif)
Luckily, the PSP has Wagic, which is awesome.
-
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?
by nelyn » 23 Sep 2009, 06:33
I wonder if using this would eleminate the class error I posted about....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.
- nelyn
- Posts: 33
- Joined: 20 Sep 2009, 16:14
- Has thanked: 0 time
- Been thanked: 0 time
Re: Is a Portable Version Possible?
by 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.)
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?
by 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.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Is a Portable Version Possible?
by 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?
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!
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?
by Huggybaby » 23 Sep 2009, 22:49
Yes, for the last time, that's what a portable app does.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?
Uh, because forge requires Java to be installed.silly freak wrote:I don't see the way in which this problem comes from forge.
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.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)
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Is a Portable Version Possible?
by frwololo » 24 Sep 2009, 01:30
Wow I thought I was the only one pissed off by that.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>
I was very angry the day I discovered Java was taking 1.5GB on my 40GB hard drive, because of not deleting old versions.
Re: Is a Portable Version Possible?
by 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/
http://www.freewaregenius.com/2008/12/01/javara-update-java-and-remove-old-versions/
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
Re: Is a Portable Version Possible?
by mtgrares » 26 Sep 2009, 20:43
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.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.
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?
by Huggybaby » 26 Sep 2009, 23:49
Thanks. The latest JRE I have is JRE 6 u16, and it zips to less than 19 MB.
-
Huggybaby - Administrator
- Posts: 3207
- Joined: 15 Jan 2006, 19:44
- Location: Finally out of Atlanta
- Has thanked: 701 times
- Been thanked: 594 times
20 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 210 guests