Comments (9)
I think simply caused because we check if physical file is there and use java
as file name. However in windows its java.exe
thought in command line you can just type java
.
File javaExecutable = new File(javaHome, "bin/" + javaExecutablePath);
Assert.isTrue(javaExecutable.canExecute(), "Java executable discovered via 'java.home' system property '"
+ javaHome + "' is not executable or does not exist.");
from spring-cloud-deployer-local.
This seems like a similar problem described in #49. @manueljordan: Please override SPRING_CLOUD_DEPLOYER_LOCAL_JAVA_CMD
property as described here and share your findings.
from spring-cloud-deployer-local.
@sabbyanandan There is no workaround other than creating java
file on windows as that Assert
happens on a class construction level.
from spring-cloud-deployer-local.
Thanks by the explanation @jvalkeal
Hi @sabbyanandan I did the following combinations in the same console:
For JDK
SET SPRING_CLOUD_DEPLOYER_LOCAL_JAVA_CMD=C:\whiteroom\java\jdk1.8.0_131\bin
SET SPRING_CLOUD_DEPLOYER_LOCAL_JAVA_CMD=C:\whiteroom\java\jdk1.8.0_131\bin;%PATH%
For JRE
SET SPRING_CLOUD_DEPLOYER_LOCAL_JAVA_CMD=C:\whiteroom\java\jre1.8.0_131\bin
SET SPRING_CLOUD_DEPLOYER_LOCAL_JAVA_CMD=C:\whiteroom\java\jre1.8.0_131\bin;%PATH%
For any of these possible 4 options, I got the same issue yet.
Not sure if I am doing something wrong
from spring-cloud-deployer-local.
I see, anyway I will do my experiments through Mac.
Thanks by the support.
from spring-cloud-deployer-local.
I tried copying java.exe to java. Same error. Let me know if you intended for something to be done.
c:\Home>echo %JAVA_HOME%
"C:\Program Files\Java\jre1.8.0_131"
c:\Users\lgoolsby\Documents\Java\Projects>cd %JAVA_HOME%
C:\Program Files\Java\jre1.8.0_131>cd bin
C:\Program Files\Java\jre1.8.0_131\bin>copy java.exe java
1 file(s) copied.
from spring-cloud-deployer-local.
@lanegoolsby either java points to wrong jvm or forward slash causes issues.
new File(javaHome, "bin/" + javaExecutablePath)
What windows version you have?
from spring-cloud-deployer-local.
Win2012 server. It appears your hypothesis that the slash is the problem appears correct. I ran the JAR from a PoSh shell instead of CMD and it appears to be working.
from spring-cloud-deployer-local.
Oh, ok thanks for pointing it out. Assuming that's the case I need to fix the PR not to use slash on win.
from spring-cloud-deployer-local.
Related Issues (20)
- Getting log defaults to stderr
- Remove sample modules
- Remote debugger doesn't work with JDK9+
- network deployer property has no effect
- Support for volumes and port mappings in SCDF local deployment HOT 1
- (Docker-Compose) Deployed applications should be able to override the datasource configuraitons inherided from the Skipper or Dataflow servers
- Create an option to deploy .NET applications without docker
- Migrate to junit5
- Stream applications running in Skipper inherit JAVA_TOOL_OPTIONS
- backport(205): Stream applications running in Skipper inherit JAVA_TOOL_OPTIONS
- backport(205): Stream applications running in Skipper inherit JAVA_TOOL_OPTIONS
- Resource limits ignored for docker local HOT 1
- Provide access to actuator for deployed apps HOT 1
- SocketUtils has been removed from Spring Framework 6.x
- Local Deployer needs to verify ports for launching apps
- maxConcurrentExecutionsReached() has a race-condition where multiple instances can start before it returns a result
- How to customize job results log folder name.
- Fix repo.spring.io references in main branch
- LocalAppDeployer can't execute symlinked `docker` HOT 1
- LocalAppDeployer scaling operations causes too many created empty, unnecessary & unused dirs
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 spring-cloud-deployer-local.