Comments (5)
There shouldn't be anything in the code that requires Java 9. (It builds cleanly for me using javac
1.8.0_92 from Homebrew on macOS, for example.)
Can you try compiling using -release 8
instead of -target 8
, and see if that works? If it doesn't, please let me know what compiler + version you're using, and what specific errors you get when compiling and/or loading the extension? Thanks.
from autochrome.
I am using Linux. I tried using both Openjdk 8 and Oracle Java 8. However, both javac binaries do not have a -release
, but only a -target
, as stated in the -help command:
-target <release> Generate class files for specific VM version
The output when trying to compile it with -release
is the following:
$ /usr/lib/jvm/oracle-java8-jdk-amd64/bin/javac -target 8 burp/BurpExtender.java
warning: ./burp/IBurpExtender.class: major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: ./burp/IBurpExtenderCallbacks.class: major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: ./com/nccgroup/autochrome/useragenttag/BurpExtender.class: major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
3 warnings
The Java 8 versions I am using are the following:
$ /usr/lib/jvm/oracle-java8-jdk-amd64/bin/java -version
java version "1.8.0_162"
Java(TM) SE Runtime Environment (build 1.8.0_162-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.162-b12, mixed mode)
and
$ /usr/lib/jvm/java-8-openjdk-amd64/bin/java -version
openjdk version "1.8.0_162"
OpenJDK Runtime Environment (build 1.8.0_162-8u162-b12-1-b12)
OpenJDK 64-Bit Server VM (build 25.162-b12, mixed mode)
from autochrome.
Yes, the -release
flag is new with the Java 9 javac
. If you're compiling with Java 8, no flags should be necessary.
I'm sorry, but I haven't been able to reproduce the major version warning that you're seeing, on multiple platforms and Java versions. Maybe try running javac
under env -i
, to ensure you don't have any environment variables related to other Java versions affecting things?
In any case, I've released a binary JAR of the extension for anyone who's having difficulty building it themselves. Hope that's helpful: https://github.com/nccgroup/autochrome/releases/download/20180411-burp-ext-snapshot/autochrome-useragenttag.jar
from autochrome.
I saw this on Ubuntu, it is fairly simple to fix your environment though in order to correctly build the jar. First check what versions of Java you have installed:
# update-java-alternatives -l
java-1.9.0-openjdk-amd64 1091 /usr/lib/jvm/java-1.9.0-openjdk-amd64
java-8-oracle 1081 /usr/lib/jvm/java-8-oracle
java-9-oracle 1091 /usr/lib/jvm/java-9-oracle
Set to Java 8(I'm using Oracle Java here, if you installed from the repos then the openjdk 8 name will be different):
# sudo update-java-alternatives -s java-8-oracle
If you have already ran javac under Java 9, then rebuilding will generate some warnings:
warning: ./burp/IBurpExtender.class: major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: ./burp/IBurpExtenderCallbacks.class: major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
warning: ./com/nccgroup/autochrome/useragenttag/BurpExtender.class: major version 53 is newer than 52, the highest major version supported by this compiler.
It is recommended that the compiler be upgraded.
To get rid of those, you can either clean up all the class files from the previous build or revert to put src folder in a clean state.
from autochrome.
Closing, please re-open the issue if it still exists.
from autochrome.
Related Issues (20)
- google authentication HOT 1
- Google Translate fails with 403 HOT 1
- Extensions are not loaded in current Chromium HOT 1
- Work-around for recent versions of Chromium HOT 2
- Unable to reinstall chromium HOT 3
- Autochrome not loading default plugins
- Background of the white profile
- Feature Request: Windows Support HOT 4
- Traffic to localhost isn't proxied HOT 2
- Warning "You are using an unsupported command-line flag" HOT 1
- No key file found for extension HOT 2
- Custom extensions installed well but not loaded HOT 1
- Error during Installation HOT 4
- Suggestion to add another switch HOT 1
- Add configuration file
- User-Agent value not appended HOT 2
- Does this run from VM? HOT 2
- Extensions force-disabled HOT 1
- Burp Extension with Custom Profiles HOT 4
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 autochrome.