Menu
  • HOME
  • TAGS

Issues with reading xml file after creating jar

scala,jar,fxml,scalafx,onejar

The real problem is rather tricky. Firstly, one needs to realize that JAR is an archive (e.g. similar to ZIP) and archives are regular files. Thus the archive itself is located somewhere in the file system, hence, it is accessible via URL. On the contrary, the "subfiles" (entries) are just...

Loading Velocity Templates from nested JARs

java,classpath,velocity,onejar

I managed to find the answer after a lot of digging. The code to use the ClasspathResourceLoader is as follows: VelocityEngine ve = new VelocityEngine(); ve.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath"); ve.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName()); ve.init(); Secondly, many people are telling me that inside of a nested jar, the standard classpath loader shouldn't even be able...

No resource for my/package in RestRegistry when using Socko Web Server

scala,sbt,onejar

There is a bug in socko web server, and I have solved the bug on the following issue in GitHub. GitHub: No resource for my/package in RestRegistry...

Maven Jar requires two execution contexts

maven,onejar

What you think about the following: <project> [...] <build> [...] <plugins> <plugin> <!-- NOTE: We don't need a groupId specification because the group is org.apache.maven.plugins ...which is assumed by default. --> <artifactId>maven-assembly-plugin</artifactId> <version>2.5.2</version> <configuration> <descriptorRefs> <descriptorRef>jar-with-dependencies</descriptorRef> </descriptorRefs> </configuration> [...] </project> That will produce a...

OneJar includes Dr Tuffs classes

java,maven,onejar

Check this link you have to add the one-jar jar as excluded in Maven pom.xml file.