Skip to content

Commit

Permalink
Update Dockerfile.linux and check if JNet Jar exist
Browse files Browse the repository at this point in the history
  • Loading branch information
masesdevelopers committed Jul 27, 2024
1 parent 32b1278 commit 32583cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/container/Dockerfile.linux
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ARG TARGETARCH
# Add JRE
RUN apt-get update && apt-get install -y --no-install-recommends openjdk-17-jre-headless && rm -rf /var/lib/apt/lists/*

#ADD ./jars /app/jars
ADD ./jars /app/jars

ENV JCOBRIDGE_JVMPath=/usr/lib/jvm/java-17-openjdk-$TARGETARCH/lib/server/libjvm.so
ENV JCOBRIDGE_LicensePath=
Expand Down
4 changes: 4 additions & 0 deletions src/net/JNet/JNetCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ protected override IList<string> PathToParse
version = version.Substring(0, version.LastIndexOf(".0"));
jnetFile = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(assembly.Location), JARsSubFolder, $"jnet-{version}.jar");
}
if (!System.IO.File.Exists(jnetFile))
{
throw new System.IO.FileNotFoundException("Unable to identify JNet Jar location", jnetFile);
}
var lst = base.PathToParse;
lst.Add(jnetFile);
return lst;
Expand Down

0 comments on commit 32583cc

Please sign in to comment.