Skip to content

Commit f876a6a

Browse files
committed
fix(build): use $JAVA_HOME/bin/java in pom.xml
1 parent e73ae53 commit f876a6a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,12 @@
123123
<executable>bash</executable>
124124
<arguments>
125125
<argument>-c</argument>
126-
<argument>/opt/homebrew/Cellar/openjdk/24.0.1/bin/java -cp ${project.build.directory}/classes com.lzw.solutions.uva.${problem}.Main &lt;src/main/resources/uva/${problem}/1.in</argument>
126+
<!-- Updated to use $JAVA_HOME/bin/java -->
127+
<argument>"$JAVA_HOME/bin/java" -cp ${project.build.directory}/classes com.lzw.solutions.uva.${problem}.Main &lt;src/main/resources/uva/${problem}/1.in</argument>
127128
</arguments>
128129
</configuration>
129130
</plugin>
130131

131132
</plugins>
132133
</build>
133-
</project>
134+
</project>

0 commit comments

Comments
 (0)