-
-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot load pcap4j-packetfactory-static on JavaFx project #220
Comments
That error should be solved by PR #207 which was merged very recently. |
Thank you so much @kaitoy , I'll be trying the snapshot version asap. |
Totally solved the problem! The snapshot version works like a charm. 🍻 For those who are also trying to use the snapshot version, here're my configurations:
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
...
<profiles>
<profile>
<id>allow-snapshots</id>
<activation><activeByDefault>true</activeByDefault></activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<releases><enabled>false</enabled></releases>
<snapshots><enabled>true</enabled></snapshots>
</repository>
</repositories>
</profile>
</profiles>
....
</settings>
<dependency>
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-core</artifactId>
<version>2.0.0-alpha.4-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.pcap4j</groupId>
<artifactId>pcap4j-packetfactory-static</artifactId>
<version>2.0.0-alpha.4-SNAPSHOT</version>
</dependency>
|
Pcap4J 1.8.0 and 2.0.0-alpha.4 are released with Java 9+ support that includes fixes for this issue. |
I'm running
pcap4j
with Java 12, on a JavaFX project using maven. I can run the project withjavafx:run
, but I can't load thepcap4j-packetfactory-static
library. It seems that the module namestatic
is a Java keyword and it can't be recognized during runtime. Is there something I'm doing wrong?BTW, my
pom.xml
looks like this:The text was updated successfully, but these errors were encountered: