Comments (4)
Thank you Elisha for taking time to file this issue.
The error message seems to suggest that the problem can be fixed either in your
main
class, or in Simon Tuffs' OneJAR library. It's specifically the "public static
class"
I'm worried about, compared to "public class" which is normally used. I would
like to
see the source for your RMB.CreditConsole.Program class, to figure it out. Can
you
please attach it?
/Hugo
Original comment by [email protected]
on 2 Jun 2009 at 7:33
from onejar-maven-plugin.
Hey Hugo, The issue was that my class was just declared as 'class' not 'public
class'. When I changed the access modifier to 'public class' it seemed to find
the
main method. Which is still kind of odd since the normal jar still seems to
find the
method regardless. However, Not all my dependencies seem to be added,
particularly
all my dependencies on other prjects? I do declare them in my pom as
dependencies
the exact same way I do for the external jars. Any help?
Thanks so much,
Elisha
Original comment by [email protected]
on 2 Jun 2009 at 8:26
from onejar-maven-plugin.
Apparently, according to
http://java.sun.com/docs/books/tutorial/getStarted/application/ you should be
able to
have the class declared as 'class' and not 'public class'. The OneJAR library
should
support that, bit seems not to.
And yes, you should declare your dependencies in your pom as usual. They should
then
be picked up and included in the one-jar.jar. If they don't, please file a
separate
issue and attach your pom.xml to that.
/Hugo
Original comment by [email protected]
on 2 Jun 2009 at 9:09
from onejar-maven-plugin.
Closing this issue as WontFix, because I made no changes to
onejar-maven-plugin. Any
changes needed for picking up your non-public class would be required in the
OneJar
library itself (i.e. not in the maven plugin). http://one-jar.sourceforge.net/
/Hugo
Original comment by [email protected]
on 12 Jun 2009 at 6:57
- Changed state: WontFix
- Added labels: OpSys-All, Priority-Low
- Removed labels: Priority-Medium
from onejar-maven-plugin.
Related Issues (20)
- Artifacts should be copied by user selection (runtime, compile, etc) HOT 4
- Make OneJarMojo.mainJarFilename writeable HOT 2
- using different native libs for different os not working HOT 8
- Local dependency projects are not included in the onejar HOT 2
- upload to central repository HOT 2
- java.io.FileNotFoundException: log4j.xml HOT 6
- Provide override for generated jar file name HOT 1
- Support newer versions of OneJar HOT 3
- Axis2 jar doesnot load
- Use newer version of One-JAR 0.97 HOT 1
- Cant specify JarClassLoader for One-jar, need to because of spring url loading HOT 5
- Add arbitrary manifest entries to top-level
- generic classpath arguments cannot be passed to execution
- Patch for /trunk/src/site/apt/usage.apt
- Can this be used under Java 1.5?
- Enhanchment - support adding one-jar.properties to the target one-jar
- How to Get List of ClassPath Resources in OneJar? HOT 2
- Support system properties included as /one-jar.properties
- NullPointerException thrown trying to access MANIFEST.MF of embedded jars
- How to add class path folder in Manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onejar-maven-plugin.