Comments (9)
Could you add the Main-Class configuration in the MANIFEST.MF ?
Otherwise, I could only run it as a java application not a jar file.
Original comment by [email protected]
on 21 Sep 2011 at 2:50
from tcpmon.
In the meantime, this works for me:
java -cp tcpmon-1.1.jar com.codegoogle.tcpmon.MainWindow
Original comment by [email protected]
on 6 Oct 2011 at 10:13
from tcpmon.
In the meantime you can rebuild the jar with the appropriate manifest header by
1) unzipping it somewhere. 2) Create a manifest.mf file in the same location
containing "Main-Class: com.codegoogle.tcpmon.MainWindow" followed by a
newline. 3) Run from the terminal at that location: "jar cfm
a_new_jar_name.jar manifest.mf com/codegoogle/tcpmon/*.class". Of course
switch the path separators to match whatever your OS expects.
Original comment by [email protected]
on 13 Oct 2011 at 6:51
from tcpmon.
[deleted comment]
from tcpmon.
[deleted comment]
from tcpmon.
To improve upon Ian, simply
echo Main-Class: com.codegoogle.tcpmon.MainWindow > abc
jar ufmv tcpmon-1.1.jar abc
rm abc
Also, a removal of the signature file is necessary:
zip -d tcpmon-1.1.jar META-INF/TCPMON.SF
Original comment by k.tinnefeld
on 18 Apr 2012 at 4:09
from tcpmon.
Verified k.tinnef's fix above resolves the issue.
Perhaps the home page should be updated? It currently still reads, "Download
tcpmon and simply double-click on the downloaded executable jar file to launch
tcpmon." Perhaps it should be updated to read, "Download tcpmon, unzip it, open
the META-INF/MANIFEST.MF file in a text editor, append the Main-Class
attribute, save the file, delete the META-INF/TCPMON.SF file, recompress the
JAR file, and double-click on the newly created executable jar file." Having
these instructions available would certainly help new TCPMon users who aren't
savvy enough to locate this issue.
Original comment by [email protected]
on 28 Jun 2012 at 2:51
from tcpmon.
-bash-3.2$ ./java -cp tcpmon-1.1.jar com.codegoogle.tcpmon.MainWindow
Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which
r equires it.
at java.awt.GraphicsEnvironment.checkHeadless(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
at com.codegoogle.tcpmon.MainWindow.<init>(MainWindow.java:29)
at com.codegoogle.tcpmon.MainWindow$2.run(MainWindow.java:232)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Original comment by [email protected]
on 27 Feb 2013 at 11:28
from tcpmon.
> No X11 DISPLAY variable was set
This will happen to any X program in your environment. See e.g.
http://www.linuxforums.org/forum/newbie/143095-no-x11-display-variable-what-does
-mean.html
Original comment by k.tinnefeld
on 28 Feb 2013 at 6:53
from tcpmon.
Related Issues (20)
- Use nio for stream threads
- On monitor panel, close tab should also stop the monitor
- The monitor should display data as it flowing on the connection, not at the end HOT 1
- There should be a way to save the request and response in a file HOT 1
- request or response windows should be independently resizeable HOT 1
- Provide a text-based interface for use on head-less servers HOT 1
- Add ability to search
- Failed to load Main-Class manifest attribute HOT 17
- Running java -jar tcpmon-1.1.jar on Mac fails HOT 2
- Option to uncompress data would be helpful.
- Large Post Completely Locks up TCPMON
- Downloaded jar will not run HOT 6
- Enable xml format HOT 1
- Show response time
- Central Maven Repository
- Jar File manifest does not have main class ref
- no main manifest attribute in jar HOT 3
- Current version(dated 25/11/2013) is not executable HOT 1
- Delay request and response
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 tcpmon.