It is currently 25 Apr 2024, 01:34
   
Text Size

Running Forge

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

Running Forge

Postby sky81 » 08 Nov 2022, 10:26

Hello,

Can anyone help me with the topic bellow?
I have an issue when trying to run/debug the Forge project with Intellij:

Connected to the target VM, address: '127.0.0.1:50761', transport: 'socket'
Unknown mode.
Known mode is 'sim', 'parse'
Disconnected from the target VM, address: '127.0.0.1:50761', transport: 'socket'

I cannot figure out what seems to be the problem

Thanks
sky81
 
Posts: 18
Joined: 29 Jan 2021, 18:09
Has thanked: 0 time
Been thanked: 0 time

Re: Running Forge

Postby kevlahnota » 09 Nov 2022, 03:00

sky81 wrote:Hello,

Can anyone help me with the topic bellow?
I have an issue when trying to run/debug the Forge project with Intellij:

Connected to the target VM, address: '127.0.0.1:50761', transport: 'socket'
Unknown mode.
Known mode is 'sim', 'parse'
Disconnected from the target VM, address: '127.0.0.1:50761', transport: 'socket'

I cannot figure out what seems to be the problem

Thanks
try to add configuration in intelliJ and setup it like this:

for mobile version using Java 8:
1.png


for desktop version using Java 8:
2.png


if using java 11 or higher add these options:
Code: Select all
--add-opens
java.base/java.util=ALL-UNNAMED
--add-opens
java.base/java.lang=ALL-UNNAMED
--add-opens
java.base/java.lang.reflect=ALL-UNNAMED
--add-opens
java.base/java.text=ALL-UNNAMED
--add-opens
java.desktop/java.awt.font=ALL-UNNAMED
--add-opens
java.base/jdk.internal.misc=ALL-UNNAMED
--add-opens
java.base/sun.nio.ch=ALL-UNNAMED
--add-opens
java.base/java.nio=ALL-UNNAMED
--add-opens
java.base/java.math=ALL-UNNAMED
--add-opens
java.base/java.util.concurrent=ALL-UNNAMED
--add-opens
java.desktop/java.awt=ALL-UNNAMED
--add-opens
java.base/java.net=ALL-UNNAMED
--add-opens
java.desktop/javax.swing=ALL-UNNAMED
--add-opens
java.desktop/java.beans=ALL-UNNAMED
--add-opens
java.desktop/javax.swing.border=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true
something like this (ie mobile version with java 11):
3.png


to build desktop and mobile/adventure port use this command (double click ctrl key and run this maven command):
Code: Select all
mvn -U -B clean -P windows-linux install
User avatar
kevlahnota
Programmer
 
Posts: 825
Joined: 19 Jul 2010, 17:45
Location: Philippines
Has thanked: 14 times
Been thanked: 264 times

Re: Running Forge

Postby sky81 » 10 Nov 2022, 18:38

Thanks for your help. Manage to solve it with settings you sugested and downgrade to java 11 and branch project on git (before I took the project from zip file)
sky81
 
Posts: 18
Joined: 29 Jan 2021, 18:09
Has thanked: 0 time
Been thanked: 0 time


Return to Forge

Who is online

Users browsing this forum: No registered users and 169 guests


Who is online

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

Login Form