jinbobo
-
Posts
10 -
Joined
-
Last visited
Posts posted by jinbobo
-
-
Thanks for the reply, I'll build the launcher myself with JDK6.
-
I decided not to use the report format because the amount of tests made and results returned. I will include details and my own comment for each test.
Launcher Version: 1.0.1.3
LWJGL Version: 2.8.3
Test 1
Operating System: Mac OS X 10.6.8
Mod Pack: Technic 7.0.1
Java Version: Java 6 SE from Apple (VM: 1.6.0_31-b04)
I opened the launcher on my MacBook which was running Snow Leopard to try play technic but then it caused an error which was obviously caused by not using JDK7.
java.lang.NoSuchMethodError: ic2.api.CropCard.registerBaseSeed(Laan;IIIII)Z
Test 2
Operating System: Mac OS X 10.7.3
Mod Pack: Technic 7.0.1
Java Version: OpenJDK7 (VM: 1.7.0_04-ea-b15)
I then proceeded to play it on my Mac Mini which was running Lion, turned on OpenJDK7(I don't usually use OpenJDK7, the version I installed at that time was a DP version of it.) then opened the launcher. I started Technic but the game window froze on a white screen, I tried the methods supplied in the common problems thread but it failed every time I tried to launch.
[20:28:57] [sEVERE] Exception in thread "Minecraft main thread"
[20:28:57] [sEVERE] java.lang.UnsatisfiedLinkError: Can't load library: /technicssp/bin/natives/liblwjgl.dylib
[20:28:57] [sEVERE] at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1828)
[20:28:57] [sEVERE] at java.lang.Runtime.load0(Runtime.java:792)
[20:28:57] [sEVERE] at java.lang.System.load(System.java:1059)
[20:28:57] [sEVERE] at org.lwjgl.Sys$1.run(Sys.java:69)
[20:28:57] [sEVERE] at java.security.AccessController.doPrivileged(Native Method)
[20:28:57] [sEVERE] at org.lwjgl.Sys.doLoadLibrary(Sys.java:65)
[20:28:57] [sEVERE] at org.lwjgl.Sys.loadLibrary(Sys.java:81)
[20:28:57] [sEVERE] at org.lwjgl.Sys.<clinit>(Sys.java:98)
[20:28:57] [sEVERE] at org.lwjgl.opengl.Display.<clinit>(Display.java:132)
[20:28:57] [sEVERE] at net.minecraft.client.Minecraft.a(Minecraft.java:325)
[20:28:57] [sEVERE] at net.minecraft.client.Minecraft.run(Minecraft.java:732)
[20:28:57] [sEVERE] at java.lang.Thread.run(Thread.java:722)
I peeked at the logs and found out it was a problem with the libraries. I went to the bin/natvies/ folder and found out that there was no such file called "liblwjgl.dylib" but instead I found another file called "liblwjgl.jnilib". At first I suspected the file to be outdated but then after I downloaded the latest lwjgl binaries, I found "liblwjgl.jnilib" but no "liblwjgl.dylib". I found a thread with the same problem and tried the suggested solution: duplicating the file and renaming it to "liblwjgl.dylib". I did but Technic crashed on load, no errors were generated. (Note: the library could have loaded but some unknown reasons caused it to crash)
Test 3
Operating System: Mac OS X 10.7.3
Mod Pack: Technic 7.0.1
Java Version: Java 7 SE (VM: 1.7.0_04-b21) & Java 7 SE (VM: 1.7.0_06-ea-b08)
I found out on the internet that the problem apparently was a missed out feature, not implemented in my version of release.* I then downloaded the Oracle release of JDK7u4, installed it, then launched Technic, it crashed on load, no errors. This was the same with JDK7u6 DP. I even tried it on a newer build of JDK7u4. (maybe the library did load but somehow caused it to crash.)
Test 4
Operating System: Mac OS X 10.7.3
Mod Pack: Technic 7.0.1
Java Version: OpenJDK8 (VM: 1.8.0-jdk8-b37-20120510)
At this point I was frustrated, but then I read that it was first fixed in JDK8.** I installed it then it crashed on the launcher. It generated an error report but it said the crash was caused by Java. (I will attach it someone wants it)
Test 5~ (for comparison only)
Operating System: Mac OS X 10.7.3
Mod Pack: VoxelModPack
Java Version: Java 7 SE (VM: 1.7.0_06-ea-b08)
I then proceed to test if other modpacks (voxelmodpack in this case) have the same problem. It does on JDK7.
Java Version: Java 6 SE from Apple (VM: 1.6.0_31-b04)
Tried it with Java 6 and it works, the voxelmodpack does not require JDK7 so it works. (not sure if lwjgl loaded)
Operating System: Mac OS X 10.6.8
Java Version: Java 6 SE from Apple (VM: 1.6.0_31-b04)
Tried it on Snow Leopard, works. (not sure if lwjgl loaded)
Operating System: Mac OS X 10.7.3
Mod Pack: None. Completely vanilla minecraft. (Minecraft launcher)
Java Version: Java 7 SE (VM: 1.7.0_06-ea-b08)
Works without error.
Operating System: Mac OS X 10.7.3
Mod Pack: Technic 6.0.7
Java Version: Java 6 SE from Apple (VM: 1.6.0_31-b04)
Works without error.
Operating System: Mac OS X 10.7.3
Mod Pack: Technic 6.0.7
Java Version: OpenJDK7 (VM: 1.7.0_04-ea-b15)
Freezes on white screen. Cannot load lwjgl.dylib: see error in test 2
Operating System: Mac OS X 10.7.3
Mod Pack: Technic 6.0.7
Java Version: Java 7 SE (VM: 1.7.0_04-b21)
Crashes without error. (not sure if lwjgl loaded)
Please provide solution if anyone is able to launch.***
Some questions answered for mac users
Will modpacks requiring JDK7 be able to run on Snow Leopard or older?
No. Mac OS X 10.7.3 (Lion)† is listed as a requirement and it the only supported platform by Oracle. ‡
Why is the game stuck on a white screen?
The game cannot load the lwjgl libraries. Update Java if using Java 7 or use Java 6.
Why does the game immediately crashes on load? (Before the Mojang logo loads)
This is caused either by a mod, a modpack, lwjgl. No solution or explanation to this currently.
* (Technical Discussion) In the JDK7 Mac Port Project Status Page it states (Core Libraries) that in 7u4 you are able to load .jnilib in addition to .dynlib
** (Technical Discussion) Please correct me if I'm wrong
*** I have programming experience, but none for Java. All comments are based on my current knowledge of computers and programming.
† Purchase Lion 64-bit computer required
‡ As stated in the JDK7 Mac OS X Port Wikis
-
This is because the Launcher was written against Java 7.
In Java 7 a lot of the Swing elements require parametrization If you want to solve this without removing the parameters and therefore maintain type safety install the java 7 jdk.
Well, there is no JDK 7 release for mac, but there is a DP version which I don't intend to install.
-
Thanks
== Edit ==
Fix:
0045 From: public static void setSelectedComboByLabel(JComboBox<ComboItem> combobox, String label) {
0045 To: public static void setSelectedComboByLabel(JComboBox combobox, String label) {
..
0047 From: if ((combobox.getItemAt(i)).getLabel().equalsIgnoreCase(label)) {
0047 To: if (((ComboItem) combobox.getItemAt(i)).getLabel().equalsIgnoreCase(label)) {
..
0054 From: public static void setSelectedComboByValue(JComboBox<ComboItem> combobox, String value) {
0054 To: public static void setSelectedComboByValue(JComboBox combobox, String value) {
..
0055 From: if ((combobox.getItemAt(i)).getValue().equalsIgnoreCase(value)) {
0055 To: if (((ComboItem) combobox.getItemAt(i)).getValue().equalsIgnoreCase(value)) {
..
0061 From: public static String getSelectedValue(JComboBox<ComboItem> combobox) {
0061 To: public static String getSelectedValue(JComboBox combobox) {
0129 From: private final JComboBox<String> modpackList;
0129 To: private final JComboBox modpackList;
..
0179 From: modpackList = new JComboBox<String>(items.toArray(itemArray));
0179 To: modpackList = new JComboBox(items.toArray(itemArray));
0146 From: JList<Image> list = new JList<Image>(new Image[] { im, im });
0146 To: JList list = new JList(new Image[] { im, im });
-
Re: Common Problems (And their solutions)
i'm not allowed to change my .cfg files. It's like they are a read only. I just can't select text or delete it or write it. So i can't change my NEI to cheat mode... what do I do? Or what am I doing rong?
Mac users:
Easy way:
[list type=decimal]
[li]Select file and press ?I (Command+I)[/li]
[li]Expand the Sharing & Permissions section[/li]
[li]Click the lock on the bottom right of the window[/li]
[li]Click the plus sign on the bottom left of the window and add yourself[/li]
[li]Change your permission to Read & Write[/li]
Advanced way:
[list type=decimal]
[li]Open terminal[/li]
Type:
sudo chmod 777 /path/to/file(drag and drop file here)
-
Sorry, can't really help. I just wondered if there was something obvious that had been done in the code, but without poking through the whole thing, I can't say...
Where did you get the source from anyway?
Thanks anyway, I dug through the documentation for Class JComboBox<E> but nothing resolved my problem.
-
Full error log
[ERROR] .../src/main/java/org/spoutcraft/launcher/gui/LoginForm.java:[130,24] type javax.swing.JComboBox does not take parameters
[ERROR] .../src/main/java/org/spoutcraft/launcher/Util.java:[42,53] type javax.swing.JComboBox does not take parameters
[ERROR] .../src/main/java/org/spoutcraft/launcher/Util.java:[50,53] type javax.swing.JComboBox does not take parameters
[ERROR] .../src/main/java/org/spoutcraft/launcher/Util.java:[58,48] type javax.swing.JComboBox does not take parameters
[ERROR] .../src/main/java/org/spoutcraft/launcher/gui/LoginForm.java:[180,29] type javax.swing.JComboBox does not take parameters
[ERROR] .../src/main/java/org/spoutcraft/launcher/gui/widget/CheckBoxNodeTreeSample.java:[146,7] type javax.swing.JList does not take parameters
[ERROR] .../src/main/java/org/spoutcraft/launcher/gui/widget/CheckBoxNodeTreeSample.java:[146,31] type javax.swing.JList does not take parameters
Source
0042 public static void setSelectedComboByLabel(JComboBox<ComboItem> combobox, String label)
0050 public static void setSelectedComboByValue(JComboBox<ComboItem> combobox, String value)
0058 public static String getSelectedValue(JComboBox<ComboItem> combobox)
0130 private final JComboBox<String> modpackList;
0180 modpackList = new JComboBox<String>(items.toArray(itemArray));
0146 JList<Image> list = new JList<Image>(new Image[] { im, im });
-
I get this kind of error when I compile the launcher from source with maven.
[ERROR] .../TechnicPack-Spoutcraft-Launcher-d0dbc6f/src/main/java/org/spoutcraft/launcher/gui/LoginForm.java:[130,24] type javax.swing.JComboBox does not take parameters
Using:
-
[li]maven 3.0.4[/li]
[li]mac os x 10.6/10.7[/li]
[li]JDK 6[/li]
-
Mac Technic Launcher Help
in Technic Launcher
Posted
Technic 7+ requires Java 7 and Lion, but there are problems with Java 7 and they're currently working on it.
http://forums.technicpack.net/index.php/topic,9802.0.html