This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!

Melk Lo

+ Follow
since Dec 25, 2019
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Melk Lo

I confirm that link forwards to a ftp server . ( but the access to file is denied :] )

I forgot it , thanks !
3 weeks ago
Can you help me with this code. It has stopped working,It can download only 9kbyte.
I have no problem with other links.

I dont know what type of link it is :

There is an other link. What it means 'from' , maybe it's a redirect..

3 weeks ago
Hi ,

I solved my problem and I came to "conclusion" it's preferabbly write to register without enviroment panel.
Windows 10 doesnt need to restart OS but in my humble opinion , the enviroment panel is confusing.
for example : I only opened the panel and close it last time and then all of a sudden it worked!Just before I had tried to open close cmd and restart windows explorer but with no success.

Tim Holloway wrote:
I think this might help:

The advantages of running an embedded copy of Ant are less overhead, no need to fiddle around with environment variables, and portability. The example given should run unmodified on Windows, MacOS and Linux. Also, you don't a need foreign-language development environment - if I'm not mistaken, you had to write your JNI code in C or something like that.

I have to compile the code cloned from repository (GIT) , Should I edit it ?

Thank to all
3 weeks ago
I'm sorry I forgot to add JAVA_HOME in normal user account variables

Now ,it recognises Ant but returns another error .. "Home is set incorrectly or ant could not be located. Please set ANT_HOME

3 weeks ago

Campbell Ritchie wrote:. . . and welcome to the Ranch

Thanks Ritchie . I'am Giorgio from Italy and I started studying some weeks ago , nice to meet you !

Tim Holloway wrote:If you're trying to update PATH in Java code, I think you may have a basic problem.....

Hi Tim , I read you long answer and I want thank you for that. Last night I managed to write enviroment variable by another way.
I've had two problems :
1) update the path variable and create one ( ANT_HOME)
2) call ant

I found JNI. to solve the first one. It works as you can see the image below.
the code is :

I don't think to solve both problems by JNI because I feel there is another problem here as you told me
I noticed something :
It works only with Admin account, may be that's what you're talling to me. see the attachment please :

User.png -> updated enviroment variables but I doesnt'work
Admin.png -> updated enviroment variables ( by hand) It Works.
Now I can update the enviroment variables but It works only with Admin account
3 weeks ago
oh ! yes there are two different account. There is an Admin account and a normal user (me) .Now I see. Thanks

I want to add ANT_HOME to enviroment variables, but I found several post on coderanch about this topic and I understood it's very difficulty especially
for a beginner. for example, If I write this in cmd :

setx ANT_HOME c:\....  It works and I can see the new variable in "User variable"

but If I do the same from Java , it doesn't work

It returns no error but it doesn't affect user variables.
I only understood that It doesn't work becouse it's not possible do it from the same process..Is It true ?

I'm going to create a batch file from Java. I know that is not a elegant solution..But It's going to work only for a single account

3 weeks ago

I have to get the value of the system path variable in Windows 10
I've tried  with the code provided below :

but the output is very different from what I can see in the windows "enviroment variables", please see attachment image

This is the output from Java !

C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\java\jdk-13.0.1\bin;C:/Program Files/Java/jdk-13.0.1/bin/server;C:/Program Files/Java/jdk-13.0.1/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\java\jdk-13.0.1\bin;C:\Users\Arthur\AppData\Local\Microsoft\WindowsApps;;C:\eclipse2019-12;;C:\eclipse2019-12\Workspace\jacis-maven\apache-ant-1.10.7in

My pourpose is add a new path to PATH variable

Can you explain me please?
3 weeks ago