-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Wiki is under construction. There may be parts that are outdated and unfinished.
Below are solutions to issues for the source code.
"There is an error on line xxxx which is underlined red." First invalidate all caches and restart intellij. (Sorry eclipse users) If that does not work then verify you are using the correct JDK version in both project and module settings. If you are still having the issue then re-download and try again.
Below is all the known issues that occur when setting up the project. Use control f
to find your error. If its not listed create an issue report.
This error occurs because you need to specify the main-class in the shading plugin inside the pom.xml
. RenJa comes with a main class you just have to call it.
Full shading plugin.
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>21</source>
<target>21</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>me.piitex.renjava.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
Part that is needed.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>21</source>
<target>21</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>me.piitex.renjava.Main</mainClass>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
This error occurs when you compile your version with the wrong java version.
- 52 = Java 8
- 53 = Java 9
- 54 = Java 10
- 55 = Java 11
- 56 = Java 12
- 57 = Java 13
- 58 = Java 14
- 59 = Java 15
- 60 = Java 16
- 61 = Java 17
RenJa is built using Java 21. Make sure your project sdk is set to java 21 and the compiler options inside your pom.xml. (RenJa may be using a different Java version. Check the readme).
If you have issues, please create an issue report. The issue report formats are not done but don't worry about the formats. For now, create a bug report for any and all issues. There is a no 'harm in asking' policy for the issue reports. You will not be punished or corrected for making the wrong report in a wrong format or even not using the formats.
As long as it makes sense and the report is coherent it does not matter. Yes, you can use the bug report to ask questions, just make sure that question has depth to it. Short questions will get short responses.