Fixed it :smile.gif:
Quite easy,
I downloaded http://www.ikvm.net/download.html and then grabbed the dll files from the bin_x64 dir and used them to replace the files that came in the zip. It runs now.
Phonic, how did you get those pretty graphs?
I usually just try stuff and then ask questions but: I have the zencraft folder (with bukkit.exe and all the dlls). Either I missed some directions or everyone else just knows where to put the exe and the dlls and how to incorporate bukkit.exe into the startup process (same batch file with bukkit*.jar replaced by bukkit.exe or ???). I don't. Could you tell me how you did it (since I think you also have Win7 64)? Thanks for your time, regardless.
Rollback Post to RevisionRollBack
"Never try to teach a pig to sing. It wastes your time and annoys the pig." Lazarus Long
I'm a Linux newbie running my server on a VPS hosting service using CentOS, so I'd appreciate if anyone could tell me how to install the dependencies this needs to work. Thanks.
I'm a Linux newbie running my server on a VPS hosting service using CentOS, so I'd appreciate if anyone could tell me how to install the dependencies this needs to work. Thanks.
Click the notch :wink.gif:
Yes, I'm very well aware with how google works dude. This is taking me to links on installing versions of Mono that people aren't even talking about in the thread, and furthermore most places assume you have an intermediate understanding of Linux whereas I'm completely new.
I've already googled the hell out of this, and I generally do before asking a question.
Okay, with help from SynMonger, I was able to get it working. The only problem is, all the plugins I'm using that use SQLite databases started throwing errors (LWC, iConomy, Persistence). Everything else seemed to work fine though. Is there any way around this issue?
Here's one of the errors:
2011-03-15 04:57:16 [SEVERE] A type load exception has occurred. loading iConomy v4.4 (Is it up to date?)
System.TypeLoadException: A type load exception has occurred.
at java.sql.DriverManager.getConnection (System.String , java.util.Properties , java.lang.ClassLoader ) [0x00000] in <filename unknown>:0
at java.sql.DriverManager.getConnection (System.String url, ikvm.internal.CallerID ) [0x00000] in <filename unknown>:0
at com.nijiko.coelho.iConomy.net.iDatabase..ctor () [0x00000] in <filename unknown>:0
at com.nijiko.coelho.iConomy.iConomy.onEnable () [0x00000] in <filename unknown>:0
at java.sql.DriverManager.getConnection(DriverManager.java:591)
at java.sql.DriverManager.getConnection(DriverManager.java:220)
at com.nijiko.coelho.iConomy.net.iDatabase.<init>(iDatabase.java:15)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:71)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:201)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:143)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:73)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
at java.lang.Thread.threadProc(Thread.java:2297)
at java.lang.Thread$1.Invoke(Thread.java:796)
at cli.System.Threading.Thread.StartUnsafe(Unknown Source)
minecraft@vps1:~/minecraft$ ikvm craftbukkit-0.0.1-SNAPSHOT.exe
Exception in thread "main" java.lang.ClassNotFoundException: craftbukkit-0.0.1-SNAPSHOT.exe not found in java.lang.ClassLoader$1{urls=[file], parent=null}
at java.net.URLClassLoader.findClass(URLClassLoader.java:514)
at java.lang.ClassLoader.loadClass(ClassLoader.java)
at java.lang.ClassLoader$1.loadClass(ClassLoader.java)
at java.lang.ClassLoader.loadClass(ClassLoader.java:293)
at IKVM.Internal.ClassLoaderWrapper.LoadClassImpl(Unknown Source)
at IKVM.Internal.ClassLoaderWrapper.LoadClassImpl(Unknown Source)
at IKVM.Internal.ClassLoaderWrapper.LoadClassByDottedNameFastImpl(Unknown Source)
at IKVM.Internal.ClassLoaderWrapper.LoadClassByDottedName(Unknown Source)
at IKVM.NativeCode.java.lang.VMClass.forName0(Unknown Source)
at java.lang.VMClass.forName0(VMClass.java)
at java.lang.VMClass.forName(VMClass.java)
at java.lang.Class.forName(Class.java)
So first try failed, running err.. Debian I believe.
Hmm, old version apparantly, could always try to upgrade the distro, I'll update the post when I've tried.
So, yeah, it looks like the SQLite issue is no fault of my own, the connector simply just won't load when you're using IKVM instead of Java. Supposedly you can compile the connector into a DLL file to make it compatible, but I wouldn't know how to get it to load. If anyone with some technical expertise can fix this issue my server will be able to use this.
Okay, with help from SynMonger, I was able to get it working. The only problem is, all the plugins I'm using that use SQLite databases started throwing errors (LWC, iConomy, Persistence). Everything else seemed to work fine though. Is there any way around this issue?
Here's one of the errors:
2011-03-15 04:57:16 [SEVERE] A type load exception has occurred. loading iConomy v4.4 (Is it up to date?)
System.TypeLoadException: A type load exception has occurred.
at java.sql.DriverManager.getConnection (System.String , java.util.Properties , java.lang.ClassLoader ) [0x00000] in <filename unknown>:0
at java.sql.DriverManager.getConnection (System.String url, ikvm.internal.CallerID ) [0x00000] in <filename unknown>:0
at com.nijiko.coelho.iConomy.net.iDatabase..ctor () [0x00000] in <filename unknown>:0
at com.nijiko.coelho.iConomy.iConomy.onEnable () [0x00000] in <filename unknown>:0
at java.sql.DriverManager.getConnection(DriverManager.java:591)
at java.sql.DriverManager.getConnection(DriverManager.java:220)
at com.nijiko.coelho.iConomy.net.iDatabase.<init>(iDatabase.java:15)
at com.nijiko.coelho.iConomy.iConomy.onEnable(iConomy.java:71)
at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:76)
at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:55)
at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:201)
at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:143)
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:73)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
at java.lang.Thread.threadProc(Thread.java:2297)
at java.lang.Thread$1.Invoke(Thread.java:796)
at cli.System.Threading.Thread.StartUnsafe(Unknown Source)
Again, anything not using SQLite is working fine.
Odd, LWC is running fine here, had my 493 server running overnight. hardly noticalbe.
Did you try fresh or over an old server?
I did not start fresh. What OS are you using? I'm using Linux so there may be some discrepancy there.
I still cannot get this to work. I ran the line as listed (changed ikvm.exe to ikvm) in openSuSe 11.3, and it returns:
"Cannot open assembly 'ikvm': No such file or directory"
when I have ikvm version 0.42.0.6
mono 2.6.4
and SUN Java JRE 1.6.0_24b-07 (not OpenJDK)
I dont feel like downloading another OS just to run this.
Also, is mono and ikvm available/usable in BSD? My minecraft server (also a vlc server for my tv) is running pc-bsd(only because i need video output, otherwise would be freebsd)
I got this (sort of) working on Ubuntu 10.04. Using "ikvm -jar craftbukkit.jar" doesn't work, it gives the exact error that MonsieurApple gets. I extracted the IKVM binaries to my root folder, and tried "mono ikvm.exe -jar craftbukkit.jar" which also crashes with that error. I then tried "mono --optimize=shared ikvm.exe -jar craftbukkit.jar" which successfully passed the "preparing spawn" thing when starting server, although it was REALLY slow, and my plugins loaded exceptionally slow as well. After that it crashed :\
Here's the error of the last crash:
>root@cl1707:~#mono --optimize=shared ikvm.exe -jar craftbukkit.jar nogui
21:39:01 [INFO] Starting minecraft server version Beta 1.3
21:39:01 [INFO] Loading properties
21:39:01 [INFO] Starting Minecraft server on 173.242.122.181:2556
21:39:01 [INFO] This server is running Craftbukkit version git-Bukkit-0.0.0-544-
g6c6c30a-b556jnks (MC: 1.3)
21:39:01 [INFO] Preparing level "world"
21:39:01 [INFO] Preparing start region21:39:03 [INFO] Preparing spawn area: 16%
21:39:04 [INFO] Preparing spawn area: 52%
21:39:05 [INFO] Preparing spawn area: 89%
21:39:07 [INFO] [Permissions] version [2.5.4] (Phoenix) was Initialized.
21:39:08 [INFO] WorldGuard loaded.
21:39:08 [INFO] CommandSigns enabled
21:39:08 [INFO] §eLoaded Essentials build 2.0.251 maintained by Zenexer, emental, Aelux, and Brettflan
21:39:08 [INFO] Loaded EssentialsBan build 2.0.251 by Zenexer, ementalo, Eris, a
nd EggRoll
21:39:08 [INFO] Loaded EssentialsGod build 2.0.251 by Zenexer, ementalo, Eris, a
nd EggRoll
21:39:08 [INFO] Loaded EssentialsHelp build 2.0.251 by Zenexer, ementalo, Eris,
and EggRoll
21:39:08 [INFO] Loaded EssentialsHome build 2.0.251 by Zenexer, ementalo, Aelux,
and Brettflan
21:39:08 [INFO] EssentialsServerlist version 2.0.251 by Vimae Development enable
d.
21:39:08 [INFO] Loaded EssentialsSpawn build 2.0.251 maintained by Zenexer, emen
talo, Aelux, and Brettflan
21:39:08 [INFO] Loaded EssentialsTele build 2.0.251 by Zenexer, ementalo, Aelux,
and Brettflan
21:39:08 [INFO] Loaded EssentialsWarp build 2.0.251 by Zenexer, ementalo, Aelux,
and Brettflan
21:39:08 [INFO] [Permissions] version [2.5.4] (Phoenix) loaded
21:39:08 [INFO] [FalseBook Block] Using 'Permissions' to handle Permissions!
21:39:08 [INFO] [FalseBook Block] FalseBookBlock.properties successfully loaded.
21:39:08 [INFO] FalseBook Block 0.70alpha by GeMo enabled
21:39:09 [INFO] [FalseBook Block] 0 Areas loaded.
21:39:09 [INFO] [FalseBook Cart] Settings successfully loaded.
21:39:09 [INFO] [FalseBook Cart] Using 'Permissions' to handle Permissions!
21:39:09 [INFO] FalseBook Cart 0.70alpha by GeMo enabled
21:39:09 [INFO] [FalseBook Extra] Using 'Permissions' to handle Permissions!
21:39:09 [INFO] FalseBook Extra 0.70alpha by GeMo enabled
21:39:09 [INFO] [FalseBook IC] Using 'Permissions' to handle Permissions!
21:39:09 [INFO] [FalseBook IC] FalseBookIC.properties successfully loaded.
21:39:09 [INFO] [FalseBook IC] plugins/FalseBook/Transmitter.db not found.
21:39:09 [INFO] [FalseBook IC] plugins/FalseBook/Receiver.db not found.
21:39:09 [INFO] [FalseBook IC] plugins/FalseBook/SensorList.db not found.
21:39:09 [INFO] FalseBook IC 0.70alpha by GeMo enabled
21:39:09 [INFO] Stargate v.0.27 is enabled.
21:39:09 [INFO] [Stargate] {world} No stargates for world
21:39:09 [INFO] [Stargate] Using Permissions 2.5 (2.5.4) for permissions
21:39:09 [INFO] [Towny] Database: [Load] flatfile [Save] flatfile
21:39:09 [INFO] [Towny] Using: Permissions, iConomy, Essentials
21:39:09 [INFO] [Towny] Version: 0.53 - Mod Enabled
21:39:09 [INFO] Vanish 1.5 loaded.
21:39:10 [INFO] WorldEdit 4.2 enabled.
>**
ERROR:class.c:2535:setup_interface_offsets: assertion failed: (class->interface_
offsets_count == interface_offsets_count)
Stacktrace:
at (wrapper managed-to-native) object.__icall_wrapper_mono_ldvirtfn (object,in
tptr) <0x00048>
at (wrapper managed-to-native) object.__icall_wrapper_mono_ldvirtfn (object,in
tptr) <0xffffffff>
at java.lang.Object.instancehelper_getClass (object) <0x00017>
at java.util.ArrayList.toArray (object[]) <0x0003f>
at org.bukkit.plugin.SimplePluginManager.getPlugins () <0x00046>
at com.sk89q.bukkit.migration.PermissionsResolverManager.tryPluginPermissionsR
esolver () <0x00067>
at com.sk89q.bukkit.migration.PermissionsResolverManager.findResolver () <0x00
023>
at com.sk89q.bukkit.migration.PermissionsResolverManager..ctor (org.bukkit.uti
l.config.Configuration,org.bukkit.Server,string,java.util.logging.Logger) <0x000
53>
at com.sk89q.worldedit.bukkit.WorldEditPlugin.onEnable () <0x00303>
at org.bukkit.plugin.java.JavaPlugin.setEnabled (bool) <0x00042>
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin (org.bukkit.plugin.Plu
gin) <0x000ba>
at org.bukkit.plugin.SimplePluginManager.enablePlugin (org.bukkit.plugin.Plugi
n) <0x0004a>
at org.bukkit.craftbukkit.CraftServer.loadPlugin (org.bukkit.plugin.Plugin) <0
x000b7>
at org.bukkit.craftbukkit.CraftServer.loadPlugins () <0x0056b>
at net.minecraft.server.MinecraftServer.e () <0x0002f>
at net.minecraft.server.MinecraftServer.a (net.minecraft.server.Convertable,st
ring) <0x005f7>
at net.minecraft.server.MinecraftServer.d () <0x00c33>
at net.minecraft.server.MinecraftServer.run () <0x00107>
at net.minecraft.server.ThreadServerApplication.run () <0x0001d>
at java.lang.Thread.threadProc () <0x00076>
at java.lang.Thread$1.Invoke () <0x0001a>
at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,
intptr,intptr) <0xffffffff>
Native stacktrace:
mono() [0x47b77f]
/lib/libpthread.so.0(+0xf8f0) [0x7ff82a9778f0]
/lib/libc.so.6(gsignal+0x35) [0x7ff82a395a75]
/lib/libc.so.6(abort+0x180) [0x7ff82a3995c0]
/lib/libglib-2.0.so.0(g_assertion_message+0x144) [0x7ff82aff5bb4]
/lib/libglib-2.0.so.0(+0x65130) [0x7ff82aff6130]
mono() [0x54cf61]
mono() [0x5461f5]
mono() [0x5474fc]
mono(mono_object_get_virtual_method+0x6e) [0x4cacde]
mono() [0x457b70]
[0x40be07f8]
Debug info from gdb:
=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Aborted.
I usually just try stuff and then ask questions but: I have the zencraft folder (with bukkit.exe and all the dlls). Either I missed some directions or everyone else just knows where to put the exe and the dlls and how to incorporate bukkit.exe into the startup process (same batch file with bukkit*.jar replaced by bukkit.exe or ???). I don't. Could you tell me how you did it (since I think you also have Win7 64)? Thanks for your time, regardless.
Thank you very much. That is a great help.
Edit:
mono --optimize=shared ikvm.exe -jar craftbukkit.jar nogui
Have fun with that.
Edit2: It was a bug in mono, it should be fixed in the master branch of the git repo now. you shouldn't need to use the optimize flag with 2.11.
Works for me on CentOS. Huzzah!
WTF? What am I supposed to do?
Yes, I'm very well aware with how google works dude. This is taking me to links on installing versions of Mono that people aren't even talking about in the thread, and furthermore most places assume you have an intermediate understanding of Linux whereas I'm completely new.
I've already googled the hell out of this, and I generally do before asking a question.
Here's one of the errors:
Again, anything not using SQLite is working fine.
So first try failed, running err.. Debian I believe.
Hmm, old version apparantly, could always try to upgrade the distro, I'll update the post when I've tried.
http://www.mono-project.com/Mono:OSX
I haven't tested it though, I've been unable to get this working on linux so I'm not even going to bother trying it on my mac.
I did not start fresh. What OS are you using? I'm using Linux so there may be some discrepancy there.
"Cannot open assembly 'ikvm': No such file or directory"
when I have ikvm version 0.42.0.6
mono 2.6.4
and SUN Java JRE 1.6.0_24b-07 (not OpenJDK)
I dont feel like downloading another OS just to run this.
Also, is mono and ikvm available/usable in BSD? My minecraft server (also a vlc server for my tv) is running pc-bsd(only because i need video output, otherwise would be freebsd)
Here's the error of the last crash:
Oh well :|
Yeh, seems to be working pretty good so far. CPU usage seems to be dramatically reduced, same with RAM. Using CraftBukkit too.