Skip to content

How to run Java Gui using xming(windows) or Mocha x11(ios)

Notifications You must be signed in to change notification settings

CuteNatalie/Java-gui-through-ssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Java-gui-through-ssh

How to run Java Gui using xming on windows for mc to install clients.

  1. First you need to install xming from this website http://www.straightrunning.com/XmingNotes/
  2. Once xming has installed onto your pc. Go to search bar and search for xming to open the server.
  3. The server icon should appear on the right of the windows task bar where the date and time is.
  4. Next go to [Drive letter]\Program Files (x86)\Xming on your windows install and look for X0.hosts
  5. Copy X0.hosts to your desktop and open it with any text editor.
  6. The next step is to add the ip address of your phone[One you would usally ssh with] under the localssh text like this
  7. ss1
  8. Now save X0.hosts and copy it back to your xming folder to replace it with the regular X0.hosts folder.
  9. Make sure you have both openjdk-16-jre and openjdk-jre from your package manager and also fontconfig and also fontconfig-config.
  10. 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.
  11. 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]
  12. Now ssh into your phone with ssh mobile@{ip of device] and type in your password when prompted.
  13. Hover on the Xming logo on the bottom right and keep track of weather it says :0 or :0.0
  14. 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
  15. now confirm that it has entered correctly by typing in echo $DISPLAY and make sure it reads the display number from above.
  16. 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
  17. 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.
  18. 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.

Java-gui-through-localhost(ios app)

  1. Install Mocha x11 lite from the appstore: https://apps.apple.com/us/app/mocha-x11-lite/id1440418587
  2. Make sure you have both openjdk-16-jre and openjdk-jre from your package manager and also fontconfig and also fontconfig-config.
  3. Now go into the Mocha x11 app and then "clients advanced configuration"
  4. 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"
  5. Go back to the main page of Mocha x11 and go into "Configure clients" section
  6. Go the bottom left where it says "New" to create a new client.
  7. 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)
  8. Once your client has been filled out to those details, go back to the main page of Mocha x11
  9. Tap on start(to start a x11 display server)
  10. 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"

About

How to run Java Gui using xming(windows) or Mocha x11(ios)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published