How to run Java Gui using xming on windows for mc to install clients.
- First you need to install xming from this website http://www.straightrunning.com/XmingNotes/
- Once xming has installed onto your pc. Go to search bar and search for xming to open the server.
- The server icon should appear on the right of the windows task bar where the date and time is.
- Next go to [Drive letter]\Program Files (x86)\Xming on your windows install and look for X0.hosts
- Copy X0.hosts to your desktop and open it with any text editor.
- The next step is to add the ip address of your phone[One you would usally ssh with] under the localssh text like this
- Now save X0.hosts and copy it back to your xming folder to replace it with the regular X0.hosts folder.
- Make sure you have both openjdk-16-jre and openjdk-jre from your package manager and also fontconfig and also fontconfig-config.
- Find a way to obtain the IP adress of your pc. You can find it by typing ipconfig/all on cmd or following step 11. Make sure to keep note of that address.
- Now go the bottom right of your screen and right click on the xming logo and click on view log. Search for the text XdmcpRegisterConnection: newAddress [shows your own adress]
- Now ssh into your phone with ssh mobile@{ip of device] and type in your password when prompted.
- Hover on the Xming logo on the bottom right and keep track of weather it says :0 or :0.0
- Now go back to your ssh cli and type in export DISPLAY={ip of computer]:[number of 0 from above]. and it should look something like this export DISPLAY=192.168.131:0.0 with either 1 or 2 0
- now confirm that it has entered correctly by typing in echo $DISPLAY and make sure it reads the display number from above.
- With your client jar file hopefully downloaded, follow the first step for creating the launcher_profiles.json from this page if you haven't. https://github.com/PojavLauncherTeam/PojavLauncher_iOS/wiki/Installing-Forge
- Now type in the command java -jar [path to jar file] and you should now see the gui for the installer show up on your windows computer.
- Before clicking anything, make sure to set the install path to the correct path: /var/mobile/Documents/minecraft/ instead of whatever it showed.
That should be it.
- Install Mocha x11 lite from the appstore: https://apps.apple.com/us/app/mocha-x11-lite/id1440418587
- Make sure you have both openjdk-16-jre and openjdk-jre from your package manager and also fontconfig and also fontconfig-config.
- Now go into the Mocha x11 app and then "clients advanced configuration"
- Look for the box that contains "DISPLAY=$IP:0;export DISPLAY" and remove the $IP text from that box so it says "DISPLAY=:0; export DISPLAY"
- Go back to the main page of Mocha x11 and go into "Configure clients" section
- Go the bottom left where it says "New" to create a new client.
- Click on that new client and set the prompts as followed: Client IP: localhost Port: 2222(if on procursus) or 44(if on checkra1n using bingner bootstrap) SSH: enabled command: java -jar [path to the jar file you want opened in the x11 displau] User: mobile Password: alpine(stock password to mobile)
- Once your client has been filled out to those details, go back to the main page of Mocha x11
- Tap on start(to start a x11 display server)
- Tap on the 4 horizontal lines at the bottom and then start a Client The java gui should now be displayed in the box of the x11 display
Tip: Seeing the traffic go up usally means that a java gui is starting. Any errors you may encounter will most likely show up on the client log which is located below "start a client"