It is currently 15 May 2025, 09:32
   
Text Size

SVN Build, Do It Yourself

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

Re: SVN Build, Do It Yourself

Postby Corwin72 » 07 Feb 2011, 19:44

Thanks Snacko!
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Build, Do It Yourself

Postby s1886x » 10 Feb 2011, 03:16

i tried compiling a new version just now, and when i tried to run it, i got this error:

An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


Truncated class file


Version:
Forge -- official beta: $Date: 2011-01-06 11:34:48 -0500 (Thu, 06 Jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows Vista Version: 6.0 Architecture: x86

Java Version: 1.6.0_11 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at forge.CardFactory.getCard2(Unknown Source)
at forge.CardFactory.getCard(Unknown Source)
at forge.CardFactory.<init>(Unknown Source)
at forge.AllZone.<clinit>(Unknown Source)
at forge.Gui_NewGame$2.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
s1886x
 
Posts: 141
Joined: 14 Jun 2010, 01:07
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby silly freak » 10 Feb 2011, 18:45

the error says that a class file generated by the compiler was corrupted. try recompiling; delete the existing .class files if necessary
___

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: SVN Build, Do It Yourself

Postby DeadSpeak » 12 Feb 2011, 15:12

Hey everybody...

So, I jumped on the SVN-train and I've been having some fun, trying out the newest cards added.

However, I can't play more than one single game, without Forge crashing and giving me this message:

An error has occured. You can copy/paste this message or save it to a file.
Please report this, plus what you tried to do, to:
viewforum.php?f=26
If you don't want to register an account, you can mail it directly to
mtgerror@yahoo.com


forge/quest/data/QuestData


Version:
Forge -- official beta: $Date: 2011-01-06 17:34:48 +0100 (to, 06 jan 2011) $, SVN revision: $Revision: 4891 $

OS: Windows 7 Version: 6.1 Architecture: x86

Java Version: 1.6.0_23 Vendor: Sun Microsystems Inc.

Detailed error trace:
java.lang.NoClassDefFoundError: forge/quest/data/QuestData
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethod(Unknown Source)
at java.awt.Component.isCoalesceEventsOverriden(Unknown Source)
at java.awt.Component.access$500(Unknown Source)
at java.awt.Component$3.run(Unknown Source)
at java.awt.Component$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Component.checkCoalescing(Unknown Source)
at java.awt.Component.<init>(Unknown Source)
at java.awt.Container.<init>(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at forge.Gui_QuestOptions.<init>(Unknown Source)
at forge.Gui_NewGame$5.actionPerformed(Unknown Source)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: forge.quest.data.QuestData
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 42 more
I've tried to copy my existing questdata (from the 28/1-11 release) and I've tried to start a Quest in the svn Forge, but nothing works...

I need help [-o<
DeadSpeak
 
Posts: 104
Joined: 25 Dec 2009, 00:14
Location: Denmark
Has thanked: 4 times
Been thanked: 3 times

Re: SVN Build, Do It Yourself

Postby Sloth » 12 Feb 2011, 15:23

DeadSpeak wrote:Hey everybody...

So, I jumped on the SVN-train and I've been having some fun, trying out the newest cards added.

However, I can't play more than one single game, without Forge crashing and giving me this message:
Did you try to use this builder by Fnoed?:
viewtopic.php?f=52&t=3721&start=345#p52863
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Build, Do It Yourself

Postby DeadSpeak » 12 Feb 2011, 17:36

Sloth wrote:
DeadSpeak wrote:Hey everybody...

So, I jumped on the SVN-train and I've been having some fun, trying out the newest cards added.

However, I can't play more than one single game, without Forge crashing and giving me this message:
Did you try to use this builder by Fnoed?:
viewtopic.php?f=52&t=3721&start=345#p52863
Thanks Sloth.... that did the trick =D>
DeadSpeak
 
Posts: 104
Joined: 25 Dec 2009, 00:14
Location: Denmark
Has thanked: 4 times
Been thanked: 3 times

Re: SVN Build, Do It Yourself

Postby UnderFlow » 12 Mar 2011, 01:00

I took the batch files, merged them and made the output a bit prettier.
This is the result: http://dl.dropbox.com/u/5988273/build-forge.bat
The target path is designated by the first command line parameter (it has to be in double quotes). (if you don't know how to set it: http://vgstrategies.about.com/od/faq/a/CommandLineP.htm)
You still need the rest of the files from the OP.
Edit:
I created a package containing everything needed: http://dl.dropbox.com/u/5988273/forge-build.zip
It also contains a file called "run.bat" that runs "build-forge.bat" in a way that makes it create the forge directory as a sibling to the build directory.

Suggestions for additional features are welcome :mrgreen: .

Update:
The first version contained a bug which caused it to copy directories to the wrong place. I apologize for any trouble that this has caused. Please redownload the file.
In addition to the bugfix, the updated version contains some minor tweaks.

Update 1.1:
  • "display_new_layout.xml" does not get copied anymore.
  • Added comments on how to customize the output (open and modify the file with a text editor).
  • Modified header text.

Update 1.2:
  • Added "forge-svn\res\lib\java-yield-1.0-SNAPSHOT-jar-with-dependencies.jar" to the java command.
Last edited by UnderFlow on 05 Jul 2011, 02:55, edited 1 time in total.
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby eljinete7 » 21 May 2011, 09:05

I'm trying to run last Forge's revision with the above tool but after creating a new build it doesn't start because the following message "Could not find the main class: forge.Gui_NewGame. Program will exit.". I don't know how to procede in order to run forge.exe correctly. Any suggestion? Thanks in advance.
User avatar
eljinete7
 
Posts: 66
Joined: 15 Nov 2009, 22:42
Has thanked: 5 times
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby UnderFlow » 23 May 2011, 18:25

eljinete7 wrote:I'm trying to run last Forge's revision with the above tool but after creating a new build it doesn't start because the following message "Could not find the main class: forge.Gui_NewGame. Program will exit.". I don't know how to procede in order to run forge.exe correctly. Any suggestion? Thanks in advance.
Thank you for your feedback and sorry for the delayed response. I was not able to reproduce the error message using the .zip-package (although I do know that I came across it at some point, but forgot how). Did you use any files not provided in the package?
If not, could you please do the following:
  • Open "run-forge.bat" with a text editor (like Editor).
  • Remove "2>NUL" in line 39 and "> NUL" in line 45.
  • Post the results (right click the console -> select all, then CTRL+SHIFT+C to copy).
Thanks.
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby eljinete7 » 24 May 2011, 16:29

Thanks for the reply. No, I don't use any extra files.

I'm looking at this and I think everything is OK but system can't locate "java.exe" is shown in step number 2 (Creating .jar file). I've searched for that file and I've found that "java.exe" IS in the OS path.

Certainly, I'm missing some important details that I can't see.

By the way, I'm using a Spanish Windows 7 OS (64 bit).

Here is the mentioned part of console output:
*****
Target directory: ..\forge


---------- 1: Updating SVN ---------------------------

At revision 8936.

---------- 2: Creating jar file ----------------------

"java" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
1 archivo(s) copiado(s).

7-Zip 4.65 Copyright (c) 1999-2009 Igor Pavlov 2009-02-03
Scanning

Creating archive ..\run-forge.jar

Compressing META-INF\MANIFEST.MF

Everything is Ok

---------- 3: Copying Forge to target directory ------
*****

Thanks again for your response. :-k
User avatar
eljinete7
 
Posts: 66
Joined: 15 Nov 2009, 22:42
Has thanked: 5 times
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby UnderFlow » 24 May 2011, 17:49

I'm starting to think that your Java installation might be at fault. Could you please check the following things?
  • First of all, does the current Beta release of Forge work?
  • I am not sure if you need a jdk, but I'd like to know if you have one installed. If you are not sure, what subfolders are in your "C:\Program Files\Java" folder? (Or the Spanish Win7 equivalent to that path...)
  • You wrote that java.exe is in the OS path. Do you also have java in the classpath? (You can type "echo %classpath%" in the console to check.)
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby eljinete7 » 24 May 2011, 18:52

- Last Forge beta runs OK. All Forge betas ran always OK in my system.
- I've installed a Java Runtime Environment (as mostly users) not a Development Kit one.
- If I type "echo %classpath%" in my console I receive only "%classpath%".

Thanks in advance.
User avatar
eljinete7
 
Posts: 66
Joined: 15 Nov 2009, 22:42
Has thanked: 5 times
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby UnderFlow » 24 May 2011, 19:22

Thanks for the quick response.

I am a bit out of my element here, but you could try referencing java.exe directly: In line 39 of build-forge.bat, replace the first "java" with "C:\Program Files\Java\jre6\bin\java.exe" (with quotes) or your corresponding path. I hope that helps. :?
UnderFlow
 
Posts: 51
Joined: 17 Feb 2011, 17:49
Has thanked: 0 time
Been thanked: 1 time

Re: SVN Build, Do It Yourself

Postby friarsol » 24 May 2011, 19:27

I think it needs to be %CLASSPATH% not %classpath%
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: SVN Build, Do It Yourself

Postby eljinete7 » 24 May 2011, 20:07

Yeah! At last, Java wasn't in my OS path. Sorry, my mistake. I've replaced the text "java" with my full path to java.exe file and all is running perfectly now. 8)

@friarsol: Trying "echo %CLASSPATH%" returns "%CLASSPATH%" too.
User avatar
eljinete7
 
Posts: 66
Joined: 15 Nov 2009, 22:42
Has thanked: 5 times
Been thanked: 0 time

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 35 guests


Who is online

In total there are 35 users online :: 0 registered, 0 hidden and 35 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 35 guests

Login Form