I successfully installed the Oracle Code Compliance Inspector (CCI) extension for JDeveloper by following the instructions. Afterwards I was able to run CCI in JDeveloper. But I'm not able to invoke Oracle CCI from a Command Line.
I can't find the script ("checkCompliance.sh") mentioned in the documentation. It's not part of the zip file I downloaded from oracle.com.
I tried to run the compliance.policy.engine.jar file directly but this fails with an error message:
java -jar /oracle/jdevhome/jdeveloper/jdev/extensions/oracle.fp.compliance.inspector/lib/compliance.policy.engine.jar -inputDir /AIA/demo -outputDir /ComplianceOut
Failed to load Main-Class manifest attribute from
/oracle/jdevhome/jdeveloper/jdev/extensions/oracle.fp.compliance.inspector/lib/compliance.policy.engine.jar
Any suggestions on how to invoke CCI from a command line or where I can find the script mentioned in the documentation?
Regarding the error message I read that this can be fixed by adding a manifest file to the jar archive which defines the Main-Class - but which one is the Main-Class of this jar file?
Okay, it's solved.
As mentioned in this part of the documentation, the CCI command line tools are distributed with Oracle Enterprise Repository (OER).
The CCI command line tools are distributed with OER within the <OER Oracle Home>/tools/solutions/<version>-ComplianceInspector.zip.
What confused me: The OER-Download only contained a single .jar file. It took me some time to realise that the .jar file is a installer.
java -jar OER111170_generic.jar [-log=full_path_to_log_file]
See installation documentation for detailed instructions.
checkCompliance.sh
After successfully installing OER, I found the <version>-ComplianceInspector.zip in <OER Home>/repository111/core/tools/solutions/.
The <version>-ComplianceInspector.zip actually contained the checkCompliance.sh file.
Related
After downloadding the jar file I clicked and the message comes as blocked(The file '/home/hadoop/Downloads/hadoop-core-1.2.jar' is not marked as executable. If this was downloaded or copied from an untrusted source, it may be dange
That file is a client library. There is nothing that "clicking" it would run.
However, as the warning says, there could be executable JAR files named anything that are harmful.
If you are trying to actually run a Hadoop cluster, then download the full package from the Apache site (preferrably Hadoop 3.x), rather than one of many JAR files from version 1.2.
When I run a watch file of JMeter then in CMD error shows me that error level 1. I tried many ways but unable to access it. Please show me best way so I can run Jmeter very easily.
Thank You in Advance.
The main reason for getting this error is downloading Source distribution instead of Binary, you need to re-download the "Binary" one:
Also make sure you properly installed JDK or JRE and java executable is in your operating system PATH (so when you execute java -version you see your Java installation details)
More information: How to Get Started With JMeter: Installation & Test Plans
Issue : I am following the URL. https://docs.fedoraproject.org/en-US/java-packaging-howto/packaging_maven_project/ to create a spec file for the rpm package.
In the website "BuildRequires: maven-local" is mentioned in the spec file.
but when I tried to search 'maven-local' using yum search maven-local command, I could not find anything and as I was not able to install the component, I'm getting an error when I am trying to do rpmbuild.
Note: I even installed maven separately in my system but it did not help me to fix the issue.
I want to evaluate Corda Standalone Shell of Corda Enterprise v4.0.
I have downloaded corda-shell-4.0.jar from below URL
https://www.r3.com/corda-enterprise-download/
And refering to below document
https://docs.corda.r3.com/releases/4.0/shell.html?highlight=standalone%20shell#the-standalone-shell I am analysing the Standalone Shell and when I run java -jar corda-shell-4.0.jar command then I get the following error:
no main manifest attribute, in corda-shell/corda-shell-4.0.jar
When I checked the MANIFEST.MF file then there is no Main-Class specified in the Manifest file.
Can anyone please guide me how to use the standalone shell?
Have a read of this - https://docs.corda.r3.com/releases/4.0/cli-application-shell-extensions.html .
It the jar is not meant to be run via java -jar. Instead, you install the CLI commands and need to set up some config to get it all to work.
Congratulations on the spring state machine, I found it yesterday and have been trying it out, specifically the turnstile example running in STS. I found it very easy and intuitive to build a FSM.
Because spring shell doesn't work well in STS I tracked down the instructions to run the examples from the command line in the reference doc,
"java -jar
spring-statemachine-samples-turnstile-1.0.0.BUILD-SNAPSHOT.jar"
,
but running it got an error
"no main manifest attribute, in spring-statemachine-samples-turnstile-1.0.0.BUILD-SNAPSHOT.jar".
Although not even a novice in using gradle, I tried fixing this by adding this line to build.gradle in the jar section
"manifest.attributes['Main-Class'] = 'demo.turnstile.Application'"
(which doesn't handle the various sub-projects I know) but got this error
"NoClassDefFoundError: org/springframework/shell/Bootstrap".
If it is possible to run the samples from gradle, could you include them in the reference document? I tried running the samples using
gradle run
but it there was no interaction with the shell scripts.
Samples are designed to be run as executable jar and with shell so that you can interact without a need to recompile with every change. Your error indicates that you didn't build that sample jar as mentioned in docs.
./gradlew clean build -x test
This will automatically use spring boot plugin which will add the necessary jar manifest headers to jar meta info to make it a true executable jar. Essentially every every sample is a spring boot app.
Building SM sample projects in Windows Environment:
Open Command prompt (windows key + r -->cmd-->Enter), Change directory to project root folder spring-statemachine-master (Inside the Extracted folder).
Run gradlew install to get all spring dependencies copied to local machine.
Run gradlew clean build -x test to get the spring shell jars built. Courtesy Janne
These steps should ideally get all .jar built, look into \build\libs folder of respective sample project for jar files.
Run the like any other java jar file java -jar [jar-file-name.jar] (make sure to be change directory to jar file directory location).
One more thing where I was stuck was, How to give events to SM:
It's like this sm event EVENT_NAME_AS_DEFINED_IN_CLASS. Ref
E.g.: sm event RINSE --> to washer project