I read the article:
http://www.newlisp.org/downloads/CodePa ... tml#toc-24
It's about C.
But how to use it in Java on windows?
Search found 107 matches
- Wed Apr 10, 2013 7:05 am
- Forum: newLISP in the real world
- Topic: Use newlisp in Java
- Replies: 0
- Views: 2368
- Fri Apr 05, 2013 6:50 am
- Forum: newLISP in the real world
- Topic: variable and symbol
- Replies: 2
- Views: 1807
variable and symbol
When reading the document today, I see there are two terms that are used for describing set. In the following table: http://www.newlisp.org/downloads/newlisp_manual.html#destructive I find: set sets the contents of a variable And when looking into the detail of set, I see syntax: (set sym-1 exp-1 [s...
- Wed Mar 06, 2013 3:46 pm
- Forum: newLISP in the real world
- Topic: How to edit this file using newlisp file APIs
- Replies: 7
- Views: 3790
Re: How to edit this file using newlisp file APIs
It seems I have no other choice for now.
Anyway, thank for your giving.
Anyway, thank for your giving.
- Wed Mar 06, 2013 1:45 am
- Forum: newLISP in the real world
- Topic: How to edit this file using newlisp file APIs
- Replies: 7
- Views: 3790
Re: How to edit this file using newlisp file APIs
I tried "append" option, unfortunately this caused "/opt/cloud_engine_home" was inserted at the end of file. esac exit 0 /opt/cloud_engine_home I just want to modify one part of my file instead of rewriting the whole file. Could anyone give me a simple way? I hope write APIs could provide one option...
- Tue Mar 05, 2013 12:33 pm
- Forum: newLISP in the real world
- Topic: How to edit this file using newlisp file APIs
- Replies: 7
- Views: 3790
Re: How to edit this file using newlisp file APIs
Thanks for your reminding. I will try to open the file using "append" option instead of "update" tomorrow.cormullion wrote:Not sure that write inserts characters... Perhaps it just overwrites...
- Tue Mar 05, 2013 8:57 am
- Forum: newLISP in the real world
- Topic: How to edit this file using newlisp file APIs
- Replies: 7
- Views: 3790
How to edit this file using newlisp file APIs
Hello I want to edit my script file, fill in correct value for CLOUD_ENGINE_HOME variable. Its value is empty at first. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin CLOUD_ENGINE_HOME= DAEMON=$CLOUD_ENGINE_HOME/nginx/bin/nginx Then I excute my newlisp codes as follows: > (set 'fi...
- Fri Mar 01, 2013 2:46 am
- Forum: newLISP in the real world
- Topic: (exec "java -version") doesn't work on Windows7
- Replies: 6
- Views: 2750
Re: (exec "java -version") doesn't work on Windows7
It works for me now. I found the jdk path is wrong in my path environment. After changing it, it works now. Don't know how does newlisp search the path for java.exe? Below is the correct value of my path environment variable. C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Fil...
- Fri Mar 01, 2013 2:15 am
- Forum: newLISP in the real world
- Topic: (exec "java -version") doesn't work on Windows7
- Replies: 6
- Views: 2750
Re: (exec "java -version") doesn't work on Windows7
Still wrong. Rebooting my OS was not helpful too. > (exec "cmd /c c:\\windows\\system32\\java.exe -version 2>&1") ("'c:\\windows\\system32\\java.exe' is not recognized as an internal or external command," "operable program or batch file.") My java.exe is installed under c:\\windows\\system32 folder....
- Fri Mar 01, 2013 1:32 am
- Forum: newLISP in the real world
- Topic: (exec "java -version") doesn't work on Windows7
- Replies: 6
- Views: 2750
Re: (exec "java -version") doesn't work on Windows7
Hello Lutz:
I copied your command and executed it , still got error message:
> (exec "java -version 2>&1")
("'java' is not recognized as an internal or external command," "operable program or batch file.")
It seems my newlisp can't find java command correctly.
I copied your command and executed it , still got error message:
> (exec "java -version 2>&1")
("'java' is not recognized as an internal or external command," "operable program or batch file.")
It seems my newlisp can't find java command correctly.
- Thu Feb 28, 2013 6:52 am
- Forum: newLISP in the real world
- Topic: (exec "java -version") doesn't work on Windows7
- Replies: 6
- Views: 2750
Re: (exec "java -version") doesn't work on Windows7
My Windows 7 and installed JDK are both 64 bit.
But it seems the newlisp is 32 bit?
Did this cause my problem?
But it seems the newlisp is 32 bit?
Did this cause my problem?
- Thu Feb 28, 2013 6:41 am
- Forum: newLISP in the real world
- Topic: (exec "java -version") doesn't work on Windows7
- Replies: 6
- Views: 2750
(exec "java -version") doesn't work on Windows7
When I run java -version command directly in console on my windows 7, it works, gets the following output: >java -version java version "1.6.0_41" Java(TM) SE Runtime Environment (build 1.6.0_41-b02) Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode) Then I launch newlisp session, but ge...
- Thu Feb 28, 2013 3:05 am
- Forum: newLISP and the O.S.
- Topic: What's the usage of newlisp.dll file?
- Replies: 2
- Views: 3053
Re: What's the usage of newlisp.dll file?
thank you :)
- Thu Feb 28, 2013 2:24 am
- Forum: newLISP and the O.S.
- Topic: What's the usage of newlisp.dll file?
- Replies: 2
- Views: 3053
What's the usage of newlisp.dll file?
Hello Lutz:
I download your 10.4.6 binary newlisp.exe from http://www.newlisp.org/downloads/develo ... in32-utf8/
, run it on windows 7. It seems it doesn't need newlisp.dll.
what can I use this dll for?
I download your 10.4.6 binary newlisp.exe from http://www.newlisp.org/downloads/develo ... in32-utf8/
, run it on windows 7. It seems it doesn't need newlisp.dll.
what can I use this dll for?
- Wed Feb 27, 2013 9:28 am
- Forum: newLISP in the real world
- Topic: Issue about loading modules from different directory
- Replies: 2
- Views: 1951
Re: Issue about loading modules from different directory
because the real-path is for the folder which contains setup.lsp, env.lsp can't find the env_ubunt.lsp file correctly. So println will show nil: ;; env.lsp (context 'envex) ;; an exception will be thrown out if the OS is neither Linux nor Windows ;; note: only Ubuntu and Windows 7 are supported for ...
- Tue Feb 26, 2013 3:11 am
- Forum: newLISP in the real world
- Topic: Issue about loading modules from different directory
- Replies: 2
- Views: 1951
Issue about loading modules from different directory
my setup.lsp loads env.lsp from different folder using relative path, codes in setup.lsp look like so: (load "../newlisp_armory/codes/env/env.lsp") (envex:load-env-tool) (envex:set-sys-env "CLOUD_ENGINE_HOME" cloud-engine-home) there are two files under newlisp_armory/codes/env/ folder, env.lsp and ...
- Fri Feb 22, 2013 12:07 pm
- Forum: newLISP and the O.S.
- Topic: Don't know how to get OS infomation
- Replies: 2
- Views: 2923
Re: Don't know how to get OS infomation
Thank you. I will use it for now.
It would be better if I could know the exact OS name,e.g. Ubuntu or Windows 7.
It would be better if I could know the exact OS name,e.g. Ubuntu or Windows 7.
- Fri Feb 22, 2013 9:46 am
- Forum: newLISP and the O.S.
- Topic: Don't know how to get OS infomation
- Replies: 2
- Views: 2923
Don't know how to get OS infomation
I read the document for sys-info, and try it in my Ubuntu 12.10 AMD64bit environment.
The following is what I got:
> (sys-info)
(510 576460752303423488 411 1 0 2048 0 5350 10406 1409)
> (sys-info 9)
1409
1409 means what?
How to check my OS is windows or Linux?
The following is what I got:
> (sys-info)
(510 576460752303423488 411 1 0 2048 0 5350 10406 1409)
> (sys-info 9)
1409
1409 means what?
How to check my OS is windows or Linux?
- Thu Feb 07, 2013 8:15 am
- Forum: newLISP in the real world
- Topic: HTTPS request
- Replies: 4
- Views: 2407
Re: HTTPS request
Thank you. That's what I want. I will try when free.
- Wed Feb 06, 2013 12:26 pm
- Forum: newLISP in the real world
- Topic: HTTPS request
- Replies: 4
- Views: 2407
Re: HTTPS request
Do you mean develop a web server using newlisp and make it handle HTTPS request from client?You can put newLISP behind a server...
But I want to develop a client based on newlisp, it could access my existing C++ web server.
- Mon Feb 04, 2013 3:17 am
- Forum: newLISP in the real world
- Topic: HTTPS request
- Replies: 4
- Views: 2407
HTTPS request
Hello
I know newlisp has some HTTP APIs, but I need to access web server via HTTPs when logging.
How to do this?
I know newlisp has some HTTP APIs, but I need to access web server via HTTPs when logging.
How to do this?
- Wed Jan 30, 2013 10:14 am
- Forum: newLISP in the real world
- Topic: How to parse unsigned short integer value from net-receive
- Replies: 3
- Views: 1831
Re: How to parse unsigned short integer value from net-recei
Thank you lutz! After removing get-char, I got the number 19 from server. Here are my correct codes below: (define (receive-challenge-string socket) ;; receive head (unless (net-receive socket head 3) (quit-for-error)) (unless (= (get-char (address head)) 1) (println "SOH in challenge message is wro...
- Tue Jan 29, 2013 3:43 pm
- Forum: newLISP in the real world
- Topic: How to parse unsigned short integer value from net-receive
- Replies: 3
- Views: 1831
How to parse unsigned short integer value from net-receive
Hello I know how to send unsigned short integer value with big-endian via TCP now. But when trying to parse the unsigned short integer from bytes array returned by net-receive, I am stuck again. Below is my codes, the server sends 3 bytes to client app written by newlisp. The first byte is 0x01, the...
- Thu Jan 24, 2013 1:50 pm
- Forum: newLISP in the real world
- Topic: crypto module on ubuntu
- Replies: 3
- Views: 1909
Re: crypto module on ubuntu
Thank you and you are right! I found the correct file under /lib/x86_64-linux-gnu/ folder after installing the 64bit version: apt-get install libssl0.9.8 Then create a link for this: ln -s /lib/x86_64-linux-gnu/libcrypto.so.0.9.8 /usr/lib/ Now it works for me. > (load "crypto.lsp") (lambda (crypto:s...
- Thu Jan 24, 2013 8:08 am
- Forum: newLISP in the real world
- Topic: How to know the TCP connection was closed?
- Replies: 4
- Views: 2162
Re: How to know the TCP connectio was closed?
I tried your suggestion. It works for me. Thank you. Below is my two functions for this topic, hope it would be helpful for others. ;; return true if connection was closed (define (net-close2? s) (if (net-receive s buffer 2) nil true)) (define (net-close? s) (if (net-select s "exception" 1000) nil t...
- Thu Jan 24, 2013 7:31 am
- Forum: newLISP in the real world
- Topic: crypto module on ubuntu
- Replies: 3
- Views: 1909
crypto module on ubuntu
Hello I try to use md5 function on ubuntu12.10 amd64 version. After downloading the crypto.lsp file from below: http://www.newlisp.org/code/modules/crypto.lsp.html I execute the load statement in interaction environment: > (load "crypto.lsp") ERR: user error : cannot find crypto library That means I...