Jump to content

Recommended Posts

Posted

I have error while I compile but I the .jar library to my workspace

C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Login.java:4: error: package com.sun.tools.attach does not exist
import com.sun.tools.attach.AttachNotSupportedException;
                           ^
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Login.java:135: error: cannot find symbol
    private /* synthetic */ void jButton2ActionPerformed(ActionEvent evt) throws IOException, URISyntaxException, AttachNotSupportedException {
                                                                                                                  ^
  symbol:   class AttachNotSupportedException
  location: class Login
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:4: error: package com.sun.tools.attach does not exist
import com.sun.tools.attach.AttachNotSupportedException;
                           ^
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:5: error: package com.sun.tools.attach does not exist
import com.sun.tools.attach.VirtualMachine;
                           ^
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:6: error: package com.sun.tools.attach does not exist
import com.sun.tools.attach.VirtualMachineDescriptor;
                           ^
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:32: error: cannot find symbol
    public static /* synthetic */ void launchClient() throws IOException, URISyntaxException, AttachNotSupportedException {
                                                                                              ^
  symbol:   class AttachNotSupportedException
  location: class Main
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Login.java:108: error: cannot find symbol
                catch (AttachNotSupportedException e) {
                       ^
  symbol: class AttachNotSupportedException
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:52: error: cannot find symbol
        for (VirtualMachineDescriptor descriptor : VirtualMachine.list()) {
                                                   ^
  symbol:   variable VirtualMachine
  location: class Main
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:52: error: cannot find symbol
        for (VirtualMachineDescriptor descriptor : VirtualMachine.list()) {
             ^
  symbol:   class VirtualMachineDescriptor
  location: class Main
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:55: error: cannot find symbol
            VirtualMachine vm = VirtualMachine.attach((VirtualMachineDescriptor)descriptor);
            ^
  symbol:   class VirtualMachine
  location: class Main
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:55: error: cannot find symbol
            VirtualMachine vm = VirtualMachine.attach((VirtualMachineDescriptor)descriptor);
                                                       ^
  symbol:   class VirtualMachineDescriptor
  location: class Main
C:\Users\Franck\Desktop\Vincent\Mod Porting Tools\forge-1.9.4-12.17.0.2051-mdk\build\sources\main\java\xyz\fusked\Main.java:55: error: cannot find symbol
            VirtualMachine vm = VirtualMachine.attach((VirtualMachineDescriptor)descriptor);
                                ^
  symbol:   variable VirtualMachine
  location: class Main
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

 

It works well in IDE :

image.thumb.png.3d118dc549d42bcc5311e8d36ca1a339.png

Posted

No java packages/classes are obfuscated so the build method is irrelevant here. Besides

  On 8/18/2018 at 10:08 AM, NqwSqw said:

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileJava'. > Compilation failed; see the compiler error output for details. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED

Expand  

The OP is already using gradle to build their project.

Posted (edited)
  On 8/18/2018 at 3:23 PM, V0idWa1k3r said:

No java packages/classes are obfuscated so the build method is irrelevant here. Besides

The OP is already using gradle to build their project.

Expand  

What I can do for it's work ?

Edited by NqwSqw
Posted

Trying to use Java 7, evidently. Which version was it that Forge switch to J8?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

Are you trying to make a launcher for your mod?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted
  On 8/18/2018 at 7:01 PM, NqwSqw said:

To inject mod into Minecraft Forge

Expand  

Why? For what purpose?

Why is the mods folder insufficient?

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.