Skip to content
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

no main manifest attribute, in tools/pinpoint-tools-1.7.3.jar #4668

Closed
reymont opened this issue Sep 25, 2018 · 4 comments
Closed

no main manifest attribute, in tools/pinpoint-tools-1.7.3.jar #4668

reymont opened this issue Sep 25, 2018 · 4 comments
Labels

Comments

@reymont
Copy link

reymont commented Sep 25, 2018

What version of pinpoint are you using?
v1.7.3

Describe the bug
no main manifest attribute, in tools/pinpoint-tools-1.7.3.jar

What did you do to trigger the bug?
Steps to reproduce, for example:

  1. java -jar tools/pinpoint-tools-1.7.3.jar pinpoint.config
@RoySRose
Copy link
Collaborator

RoySRose commented Sep 27, 2018

Hello, @reymont

I think you need to include the path to the config file.
try to follow this instruction

@reymont
Copy link
Author

reymont commented Sep 29, 2018

Hi @RoySRose, I assigned the absolute path to config. The result was the same.

$ java -jar pinpoint-tools-1.7.3.jar /c/workspace/java/pinpoint/pinpoint-agent-1.7.3/pinpoint.config
no main manifest attribute, in pinpoint-tools-1.7.3.jar

Then, I check the MANIFEST.MF. There is no Main-Class: attribute in the MANIFEST.MF of pinpoint-tools-1.7.3.jar.

@RoySRose
Copy link
Collaborator

RoySRose commented Oct 4, 2018

Hello, @reymont
I think there was a misunderstanding on the release.

Will you try to run the test with the existing shell script just like other versions as this guide

I think it would work.(I've tried it)

However, if you face a command not founde 2 error while running the script.
please overwrite it with below text OR download the file(change .txt -> .sh after download)
networktest.txt
There is a line seperator problem in the included shell script in the release1.7.3.

#! /bin/bash

WORKING_DIR=$(dirname "$0")
cd -P "$WORKING_DIR"/.. > /dev/null

CL_PATH=$(find . -name '*.jar' | tr "\n" :)
echo "CLASSPATH=$CL_PATH"

java -classpath $CL_PATH com.navercorp.pinpoint.tools.NetworkAvailabilityChecker pinpoint.config

@reymont
Copy link
Author

reymont commented Oct 9, 2018

Hi, @RoySRose . Finally, i run it in linux successfully. This shell isn't compatible with mingw64(git bash) in windows.

@reymont reymont closed this as completed Oct 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants