help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can "edit filename" open the new file in emacs itself?


From: aditya
Subject: can "edit filename" open the new file in emacs itself?
Date: Fri, 18 Dec 2009 13:51:40 +0100 (CET)
User-agent: SquirrelMail/1.4.9a

Dear all,

I am using octave from within emacs. The command "edit filename" at the
octave shell promp opens notepad editor in windows and some other editor
in ubuntu. But I want that it is opened in my emacs itself. Is this
possible?

Many thanks for your help,

Aditya


> Send Help-octave mailing list submissions to
>       address@hidden
>
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
> or, via email, send a message with subject or body 'help' to
>       address@hidden
>
> You can reach the person managing the list at
>       address@hidden
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Help-octave digest..."
>
>
> Today's Topics:
>
>    1. Re: Function works with number literal but not with variable
>       (Sergei Steshenko)
>    2. Importing data in Octave (Alberto Frigerio)
>    3. Re: Importing data in Octave (Jaroslav Hajek)
>    4. Importing data in Octave (John W. Eaton)
>    5. Re: Importing data in Octave (Alberto Frigerio)
>    6. Re: Importing data in Octave (John W. Eaton)
>    7. Re: Importing data in Octave (Alberto Frigerio)
>    8. Re: Trouble installing the java-package (Thole Klingenberg)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 16 Dec 2009 15:15:49 -0800 (PST)
> From: Sergei Steshenko <address@hidden>
> Subject: Re: Function works with number literal but not with variable
> To: address@hidden, George <address@hidden>
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=iso-8859-1
>
>
>
> --- On Wed, 12/16/09, George <address@hidden> wrote:
>
>> From: George <address@hidden>
>> Subject: Re: Function works with number literal but not with variable
>> To: address@hidden
>> Date: Wednesday, December 16, 2009, 3:43 AM
>> On Wed, Dec 16, 2009 at 11:36 AM,
>> George <address@hidden>
>> wrote:
>> > imshow doesn't work if an image contains both positive
>> and negative
>> > values. So I tried to write a wrapper for imshow that
>> will scale the
>> > image so that all the elements are positive. So I call
>> imshow from
>> > within my function. The problem is that it doesn't
>> work if I pass the
>> > limits from variables, but it works if I type them as
>> numbers. So this
>> > code doesn't work:
>> >
>> > ? ? ? ?minVal = min(min(image));
>> > ? ? ? ?maxVal = max(max(image));
>> > ? ? ? ?[rows, columns] = size(image);
>> > ? ? ? ?normalized = image - ones(rows,columns) *
>> (minVal);
>> > ? ? ? ?minVal = min(min(normalized));
>> > ? ? ? ?maxVal = max(max(normalized)); % for my
>> test image this is 44.2, I
>> > can see it if I remove the semicolon
>> > ? ? ? ?imshow(normalized, [0, maxVal]);
>> >
>> > But it works if I change the last line to this:
>> >
>> > ? ? ? ?imshow(normalized, [0, 44.2]);
>> >
>> > Two questions here:
>> >
>> > Why does this happen?
>> > Why doesn't imshow work with images that have both
>> positive and negative values?
>>
>> I found that the problem was that my image was of type
>> 'single'. If I
>> convert it to 'double' imshow works. Is this a bug? I think
>> so.
>>
>> _______________________________________________
>
>
> If you think the behavior is wrong, you should provide a better proof.
>
> For example, a proof that in non-working code maxVal is a (reasonable)
> number and not, say a vector or a matrix - otherwise working and-non
> working variants of code are not equivalent.
>
> Secondly, I guess the developers would like a test image which triggers
> the bug - if it's a bug.
>
> Regards,
>   Sergei.
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 16 Dec 2009 23:50:22 -0800 (PST)
> From: Alberto Frigerio <address@hidden>
> Subject: Importing data in Octave
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> Hi everyone, I've a question about importing data in Octave.
>
> I have a matrix saved in a .txt file that I would like to emport in
> Octave,
> using the statement "load" . But I've I problems if the matrix has
> character
> headers (for example, the description of the different columns). Hence,
> how
> can I import a mixed text-numbers matrix ? Have I to manipulate the .txt
> file?
>
> Thank you,
>   Alberto
> --
> View this message in context:
> http://old.nabble.com/Importing-data-in-Octave-tp26824412p26824412.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 17 Dec 2009 08:55:55 +0100
> From: Jaroslav Hajek <address@hidden>
> Subject: Re: Importing data in Octave
> To: Alberto Frigerio <address@hidden>
> Cc: address@hidden
> Message-ID:
>       <address@hidden>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Thu, Dec 17, 2009 at 8:50 AM, Alberto Frigerio
> <address@hidden> wrote:
>>
>> Hi everyone, I've a question about importing data in Octave.
>>
>> I have a matrix saved in a .txt file that I would like to emport in
>> Octave,
>> using the statement "load" . But I've I problems if the matrix has
>> character
>> headers (for example, the description of the different columns). Hence,
>> how
>> can I import a mixed text-numbers matrix ? Have I to manipulate the .txt
>> file?
>>
>
> Use fscanf, textread or dlmread.
>
>
> --
> RNDr. Jaroslav Hajek
> computing expert & GNU Octave developer
> Aeronautical Research and Test Institute (VZLU)
> Prague, Czech Republic
> url: www.highegg.matfyz.cz
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 17 Dec 2009 02:58:06 -0500
> From: "John W. Eaton" <address@hidden>
> Subject: Importing data in Octave
> To: Alberto Frigerio <address@hidden>
> Cc: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On 16-Dec-2009, Alberto Frigerio wrote:
>
> | Hi everyone, I've a question about importing data in Octave.
> |
> | I have a matrix saved in a .txt file that I would like to emport in
> Octave,
> | using the statement "load" . But I've I problems if the matrix has
> character
> | headers (for example, the description of the different columns). Hence,
> how
> | can I import a mixed text-numbers matrix ? Have I to manipulate the .txt
> | file?
>
> If you have a single matrix in a file, lines beginning with % or #
> characters are ignored.  So make your header use those as comment
> markers and it should just work.
>
> jwe
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 17 Dec 2009 00:09:18 -0800 (PST)
> From: Alberto Frigerio <address@hidden>
> Subject: Re: Importing data in Octave
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> I thought the same thing, but I want my Octave matrix to have those
> headers
> since I'll use them ...
>
>   Alberto
>
>
> John W. Eaton-3 wrote:
>>
>> On 16-Dec-2009, Alberto Frigerio wrote:
>>
>> | Hi everyone, I've a question about importing data in Octave.
>> |
>> | I have a matrix saved in a .txt file that I would like to emport in
>> Octave,
>> | using the statement "load" . But I've I problems if the matrix has
>> character
>> | headers (for example, the description of the different columns).
>> Hence,
>> how
>> | can I import a mixed text-numbers matrix ? Have I to manipulate the
>> .txt
>> | file?
>>
>> If you have a single matrix in a file, lines beginning with % or #
>> characters are ignored.  So make your header use those as comment
>> markers and it should just work.
>>
>> jwe
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Importing-data-in-Octave-tp26824412p26824545.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 6
> Date: Thu, 17 Dec 2009 03:12:17 -0500
> From: "John W. Eaton" <address@hidden>
> Subject: Re: Importing data in Octave
> To: Alberto Frigerio <address@hidden>
> Cc: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
> On 17-Dec-2009, Alberto Frigerio wrote:
>
> | I thought the same thing, but I want my Octave matrix to have those
> headers
> | since I'll use them ...
>
> Sorry, I don't understand what you mean.  Maybe you should post a
> small example file that you are trying to load.  Otherwise we can only
> guess about what it is you are trying to do and what the problems are.
>
> jwe
>
>
> ------------------------------
>
> Message: 7
> Date: Thu, 17 Dec 2009 00:54:08 -0800 (PST)
> From: Alberto Frigerio <address@hidden>
> Subject: Re: Importing data in Octave
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=us-ascii
>
>
> OK, that is a simple example.
>
> In the Data file I have height, weight and foot size of some people, and I
> have to take their averages. Hence (imagine to have not three but a lot of
> different columns) I want to put a header on the results, in order to
> understand in what data the average is based without looking at the input
> file.
>
> Let X the imported data and y the results, I'd like the first row of y to
> be
> the first row of X (without the first column) and the second row od y to
> be
> the mean on the other rows of X ...
>
>    Alberto
>
> http://old.nabble.com/file/p26824973/DataExample.txt DataExample.txt
> http://old.nabble.com/file/p26824973/ResultExample.txt ResultExample.txt
>
> John W. Eaton-3 wrote:
>>
>> On 17-Dec-2009, Alberto Frigerio wrote:
>>
>> | I thought the same thing, but I want my Octave matrix to have those
>> headers
>> | since I'll use them ...
>>
>> Sorry, I don't understand what you mean.  Maybe you should post a
>> small example file that you are trying to load.  Otherwise we can only
>> guess about what it is you are trying to do and what the problems are.
>>
>> jwe
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Importing-data-in-Octave-tp26824412p26824973.html
> Sent from the Octave - General mailing list archive at Nabble.com.
>
>
>
> ------------------------------
>
> Message: 8
> Date: Thu, 17 Dec 2009 16:56:48 +0100
> From: Thole Klingenberg <address@hidden>
> Subject: Re: Trouble installing the java-package
> To: address@hidden
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi,
>
> today I got similar errors using two different computers. Maybe I am
> missing a configuration step or something. This is how I tried to
> install the package:
>
> Each of the computers has Ubuntu 9.10 installed
>  * the octave3.0 (I also tried 3.2 but there was no difference) package
> is installed
>  * The OpenJDK Runtime Environment (IcedTea6 1.6.1) package is installed
>  * I downloaded the java pkg from
> http://octave.sourceforge.net/packages.html
>  * I set up $JAVA_HOME:
> address@hidden:~$ export JAVA_HOME="/usr/lib/jvm/java-6-openjdk"
>  * I launched octave and tried to install the java pkg:
> address@hidden:~$ octave
> octave:1> pkg install -local -verbose java-x.y.z.tar.gz
>
> but the install fails every time. having a amd64 of i386 architecture does
> not change that.
>
>
> I also tried a solution from
> http://old.nabble.com/compiling-java-package-on-linux-td26261041.html
> and replaced __java.cc__ with the version from the repository. without any
> success.
>
>
> Thole.
>
>
> Am Mittwoch, den 16.12.2009, 10:47 +0100 schrieb Thole Klingenberg:
>> right, thanks. I switched virtual machines while I tried to install the
>> package...not noticing that I had just a sun-jre installed. So this is
>> the error I get with both openjdk and sun-jdk, when trying to install
>> the java-package:
>>
>>
>> octave:1> pkg install -local -verbose java-1.2.6.tar.gz
>> __java__.cc: In function ?std::string get_module_path(const
>> std::string&, bool)?:
>> __java__.cc:226: error: no match for call to ?(std::string) ()?
>> __java__.cc: In function ?std::string initial_class_path()?:
>> __java__.cc:265: error: no match for call to ?(std::string) ()?
>> __java__.cc: In function ?void initialize_jvm()?:
>> __java__.cc:384: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc:410: error: no match for call to ?(std::string) ()?
>> __java__.cc: In function ?octave_value get_array_elements(JNIEnv*,
>> _jobject*, const octave_value_list&)?:
>> __java__.cc:611: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In function ?octave_value set_array_elements(JNIEnv*,
>> _jobject*, const octave_value_list&, const octave_value&)?:
>> __java__.cc:633: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In function ?octave_value box(JNIEnv*, _jobject*,
>> _jclass*)?:
>> __java__.cc:782: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc:847: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In function ?int unbox(JNIEnv*, const octave_value&,
>> jobject_ref&, jclass_ref&)?:
>> __java__.cc:987: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc:1051: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In function ?int java_event_hook()?:
>> __java__.cc:1116: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In member function ?octave_value
>> octave_java::do_java_invoke(JNIEnv*, const std::string&, const
>> octave_value_list&)?:
>> __java__.cc:1695: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In static member function ?static octave_value
>> octave_java::do_java_invoke(JNIEnv*, const std::string&, const
>> std::string&, const octave_value_list&)?:
>> __java__.cc:1720: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In static member function ?static octave_value
>> octave_java::do_java_create(JNIEnv*, const std::string&, const
>> octave_value_list&)?:
>> __java__.cc:1745: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In member function ?octave_value
>> octave_java::do_java_get(JNIEnv*, const std::string&)?:
>> __java__.cc:1766: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In static member function ?static octave_value
>> octave_java::do_java_get(JNIEnv*, const std::string&, const
>> std::string&)?:
>> __java__.cc:1786: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In member function ?octave_value
>> octave_java::do_java_set(JNIEnv*, const std::string&, const
>> octave_value&)?:
>> __java__.cc:1812: warning: deprecated conversion from string constant to
>> ?char*?
>> __java__.cc: In static member function ?static octave_value
>> octave_java::do_java_set(JNIEnv*, const std::string&, const
>> std::string&, const octave_value&)?:
>> __java__.cc:1834: warning: deprecated conversion from string constant to
>> ?char*?
>> make: *** [__java__.oct] Fehler 1
>> error: 'make' returned the following error: make: Gehe in Verzeichnis
>> '/tmp/oct-xj6MG0/java-1.2.6/src'
>> if [ "Xamd64X" = "XX" ]; then \
>>              mkoctfile -DHAVE_OCTAVE_30 -v -DJAVAPKG_BUILD
>> -I/usr/lib/jvm/java-6-sun/include
>> -I/usr/lib/jvm/java-6-sun/include/linux -o __java__.oct __java__.cc ; \
>>      else \
>>              mkoctfile -DHAVE_OCTAVE_30 -v -DJAVAPKG_BUILD 
>> -DJAVA_ARCH=\\\"amd64\\
>> \" -DJAVA_HOME=\\\"/usr/lib/jvm/java-6-sun\\\"
>> -I/usr/lib/jvm/java-6-sun/include
>> -I/usr/lib/jvm/java-6-sun/include/linux -o __java__.oct __java__.cc ; \
>>      fi
>> g++ -c -fPIC -I/usr/include/octave-3.0.5
>> -I/usr/include/octave-3.0.5/octave -O2 -g
>> -I/usr/lib/jvm/java-6-sun/include
>> -I/usr/lib/jvm/java-6-sun/include/linux -DHAVE_OCTAVE_30 -DJAVAPKG_BUILD
>> -DJAVA_ARCH=\"amd64\" -DJAVA_HOME=\"/usr/lib/jvm/java-6-sun\"
>> __java__.cc -o __java__.o
>> make: Verlasse Verzeichnis '/tmp/oct-xj6MG0/java-1.2.6/src'
>> error: called from `pkg:configure_make' in
>> file /usr/share/octave/3.0.5/m/pkg/pkg.m near line 1248, column 2
>>
>>
>> Am Mittwoch, den 16.12.2009, 09:13 +0000 schrieb Michael Goffioul:
>> > Seems you missing jni.h. This file is part of Java development
>> package.
>> > For Sun Java, it's JDK.
>> >
>> > Michael.
>> >
>> >
>> > On Wed, Dec 16, 2009 at 8:06 AM, Thole Klingenberg
>> > <address@hidden> wrote:
>> > > hi,
>> > >
>> > > I tried to install the java-package, but i get a weird error. I am
>> using
>> > > octave 3.0 and I made sure, that java is available in $JAVA_HOME. I
>> am
>> > > running a 64bit linux OS, but I have no clue if this is related to
>> the
>> > > problem.
>> > >
>> > > This is the error I get running pgk install, any idea how to fix
>> this?:
>> > >
>> > > octave:3> pkg install -local -verbose java-1.2.6.tar.gz
>> > > In file included from __java__.cc:17:
>> > > __java__.h:22:17: error: jni.h: No such file or directory
>> > > In file included from __java__.cc:17:
>> > > __java__.h:34: error: expected ?)? before ?*? token
>> > > __java__.h:38: error: expected ?)? before ?*? token
>> > > __java__.h:75: error: ISO C++ forbids declaration of ?JNIEnv? with
>> no
>> > > type
>> > > __java__.h:75: error: expected ?;? before ?*? token
>> > > __java__.h: In member function ?void java_local_ref<T>::release()?:
>> > > __java__.h:62: error: ?env? was not declared in this scope
>> > > __java__.h: In constructor ?java_local_ref<T>::java_local_ref()?:
>> > > __java__.h:68: error: class ?java_local_ref<T>? does not have any
>> field
>> > > named ?env?
>> > > __java__.h: At global scope:
>> > > __java__.h:78: error: ?jobject? was not declared in this scope
>> > > __java__.h:78: error: template argument 1 is invalid
>> > > __java__.h:78: error: invalid type in declaration before ?;? token
>> > > __java__.h:79: error: ?jclass? was not declared in this scope
>> > > __java__.h:79: error: template argument 1 is invalid
>> > > __java__.h:79: error: invalid type in declaration before ?;? token
>> > > __java__.h:80: error: ?jstring? was not declared in this scope
>> > > __java__.h:80: error: template argument 1 is invalid
>> > > __java__.h:80: error: invalid type in declaration before ?;? token
>> > > __java__.h:81: error: ?jobjectArray? was not declared in this scope
>> > > __java__.h:81: error: template argument 1 is invalid
>> > > __java__.h:81: error: invalid type in declaration before ?;? token
>> > > __java__.h:82: error: ?jintArray? was not declared in this scope
>> > > __java__.h:82: error: template argument 1 is invalid
>> > > __java__.h:82: error: invalid type in declaration before ?;? token
>> > > __java__.h:83: error: ?jbyteArray? was not declared in this scope
>> > > __java__.h:83: error: template argument 1 is invalid
>> > > __java__.h:83: error: invalid type in declaration before ?;? token
>> > > __java__.h:84: error: ?jdoubleArray? was not declared in this scope
>> > > __java__.h:84: error: template argument 1 is invalid
>> > > __java__.h:84: error: invalid type in declaration before ?;? token
>> > > __java__.h:85: error: ?jthrowable? was not declared in this scope
>> > > __java__.h:85: error: template argument 1 is invalid
>> > > __java__.h:85: error: invalid type in declaration before ?;? token
>> > > __java__.h:87: warning: ?jstring_to_string? initialized and declared
>> > > ?extern?
>> > > __java__.h:87: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:87: error: ?jni_env? was not declared in this scope
>> > > __java__.h:87: error: ?jstring? was not declared in this scope
>> > > __java__.h:88: warning: ?jstring_to_string? initialized and declared
>> > > ?extern?
>> > > __java__.h:88: error: redefinition of ?std::string
>> jstring_to_string?
>> > > __java__.h:87: error: ?std::string jstring_to_string? previously
>> > > declared here
>> > > __java__.h:88: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:88: error: ?jni_env? was not declared in this scope
>> > > __java__.h:88: error: ?jobject? was not declared in this scope
>> > > __java__.h:89: warning: ?box? initialized and declared ?extern?
>> > > __java__.h:89: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:89: error: ?jni_env? was not declared in this scope
>> > > __java__.h:89: error: ?jobject? was not declared in this scope
>> > > __java__.h:89: error: ?jclass? was not declared in this scope
>> > > __java__.h:90: warning: ?box_more? initialized and declared ?extern?
>> > > __java__.h:90: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:90: error: ?jni_env? was not declared in this scope
>> > > __java__.h:90: error: ?jobject? was not declared in this scope
>> > > __java__.h:90: error: ?jclass? was not declared in this scope
>> > > __java__.h:91: warning: ?unbox? initialized and declared ?extern?
>> > > __java__.h:91: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:91: error: ?jni_env? was not declared in this scope
>> > > __java__.h:91: error: expected primary-expression before ?const?
>> > > __java__.h:91: error: expected primary-expression before ?&? token
>> > > __java__.h:91: error: ?jobj? was not declared in this scope
>> > > __java__.h:91: error: expected primary-expression before ?&? token
>> > > __java__.h:91: error: ?jcls? was not declared in this scope
>> > > __java__.h:91: error: initializer expression list treated as
>> compound
>> > > expression
>> > > __java__.h:92: warning: ?unbox? initialized and declared ?extern?
>> > > __java__.h:92: error: redefinition of ?int unbox?
>> > > __java__.h:91: error: ?int unbox? previously defined here
>> > > __java__.h:92: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:92: error: ?jni_env? was not declared in this scope
>> > > __java__.h:92: error: expected primary-expression before ?const?
>> > > __java__.h:92: error: expected primary-expression before ?&? token
>> > > __java__.h:92: error: ?jobjs? was not declared in this scope
>> > > __java__.h:92: error: expected primary-expression before ?&? token
>> > > __java__.h:92: error: ?jclss? was not declared in this scope
>> > > In file included from __java__.cc:17:
>> > > __java__.h:111: error: expected ?)? before ?obj?
>> > > __java__.h:122: error: ?jobject? does not name a type
>> > > __java__.h:123: error: ?jclass? does not name a type
>> > > __java__.h:173: error: ISO C++ forbids declaration of ?JNIEnv? with
>> no
>> > > type
>> > > __java__.h:173: error: expected ?;? before ?*? token
>> > > __java__.h:175: error: ?JNIEnv? has not been declared
>> > > __java__.h:181: error: ?JNIEnv? has not been declared
>> > > __java__.h:188: error: ?JNIEnv? has not been declared
>> > > __java__.h:194: error: ?JNIEnv? has not been declared
>> > > __java__.h:199: error: ?JNIEnv? has not been declared
>> > > __java__.h:205: error: ?JNIEnv? has not been declared
>> > > __java__.h:210: error: ?JNIEnv? has not been declared
>> > > __java__.h:218: error: ?jobject? has not been declared
>> > > __java__.h:218: error: ?jclass? has not been declared
>> > > __java__.h:264: error: ?jobject? does not name a type
>> > > __java__.h:265: error: ?jclass? does not name a type
>> > > __java__.h: In constructor ?octave_java::octave_java()?:
>> > > __java__.h:102: error: class ?octave_java? does not have any field
>> named
>> > > ?java_object?
>> > > __java__.h:102: error: class ?octave_java? does not have any field
>> named
>> > > ?java_class?
>> > > __java__.h: In copy constructor ?octave_java::octave_java(const
>> > > octave_java&)?:
>> > > __java__.h:106: error: class ?octave_java? does not have any field
>> named
>> > > ?java_object?
>> > > __java__.h:106: error: class ?octave_java? does not have any field
>> named
>> > > ?java_class?
>> > > __java__.h:108: error: ?const class octave_java? has no member named
>> > > ?java_object?
>> > > __java__.h:108: error: ?const class octave_java? has no member named
>> > > ?java_class?
>> > > __java__.h: In member function ?virtual bool
>> octave_java::is_string()
>> > > const?:
>> > > __java__.h:163: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:163: error: ?current_env? was not declared in this scope
>> > > __java__.h:163: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h:165: error: ?java_object? was not declared in this scope
>> > > __java__.h:167: error: initializer expression list treated as
>> compound
>> > > expression
>> > > __java__.h: In member function ?octave_value
>> > > octave_java::do_java_invoke(const std::string&, const
>> > > octave_value_list&)?:
>> > > __java__.h:179: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In static member function ?static octave_value
>> > > octave_java::do_java_invoke(const std::string&, const std::string&,
>> > > const octave_value_list&)?:
>> > > __java__.h:186: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In static member function ?static octave_value
>> > > octave_java::do_java_create(const std::string&, const
>> > > octave_value_list&)?:
>> > > __java__.h:192: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In member function ?octave_value
>> > > octave_java::do_java_get(const std::string&)?:
>> > > __java__.h:197: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In static member function ?static octave_value
>> > > octave_java::do_java_get(const std::string&, const std::string&)?:
>> > > __java__.h:203: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In member function ?octave_value
>> > > octave_java::do_java_set(const std::string&, const octave_value&)?:
>> > > __java__.h:208: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In static member function ?static octave_value
>> > > octave_java::do_java_set(const std::string&, const std::string&,
>> const
>> > > octave_value&)?:
>> > > __java__.h:215: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h: In member function ?void octave_java::init(int, int)?:
>> > > __java__.h:220: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:220: error: ?current_env? was not declared in this scope
>> > > __java__.h:220: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h:225: error: ?java_object? was not declared in this scope
>> > > __java__.h:227: error: ?java_class? was not declared in this scope
>> > > __java__.h:227: error: expected type-specifier before ?jclass?
>> > > __java__.h:227: error: expected ?>? before ?jclass?
>> > > __java__.h:227: error: expected ?(? before ?jclass?
>> > > __java__.h:227: error: ?jclass? was not declared in this scope
>> > > __java__.h:227: error: expected ?)? before ?;? token
>> > > __java__.h:228: error: ?java_object? was not declared in this scope
>> > > __java__.h:230: error: initializer expression list treated as
>> compound
>> > > expression
>> > > __java__.h:231: error: ?java_class? was not declared in this scope
>> > > __java__.h:231: error: expected type-specifier before ?jclass?
>> > > __java__.h:231: error: expected ?>? before ?jclass?
>> > > __java__.h:231: error: expected ?(? before ?jclass?
>> > > __java__.h:231: error: ?jclass? was not declared in this scope
>> > > __java__.h:231: error: expected ?)? before ?;? token
>> > > __java__.h:234: error: ?java_class? was not declared in this scope
>> > > __java__.h:236: error: initializer expression list treated as
>> compound
>> > > expression
>> > > __java__.h:237: error: ?jmethodID? was not declared in this scope
>> > > __java__.h:237: error: expected ?;? before ?mID?
>> > > __java__.h:238: error: ?mID? was not declared in this scope
>> > > __java__.h:238: error: initializer expression list treated as
>> compound
>> > > expression
>> > > __java__.h: In member function ?void octave_java::release()?:
>> > > __java__.h:246: error: ?JNIEnv? was not declared in this scope
>> > > __java__.h:246: error: ?current_env? was not declared in this scope
>> > > __java__.h:246: error: ?thread_jni_env? was not declared in this
>> scope
>> > > __java__.h:250: error: ?java_object? was not declared in this scope
>> > > __java__.h:252: error: ?java_class? was not declared in this scope
>> > > __java__.h:254: error: ?java_object? was not declared in this scope
>> > > __java__.h:255: error: ?java_class? was not declared in this scope
>> > > __java__.cc: At global scope:
>> > > __java__.cc:36: error: ISO C++ forbids declaration of ?jint? with no
>> > > type
>> > > __java__.cc:36: error: typedef ?jint? is initialized (use decltype
>> > > instead)
>> > > __java__.cc:36: error: ?JNICALL? was not declared in this scope
>> > > __java__.cc:36: error: ?JNI_CreateJavaVM_t? was not declared in this
>> > > scope
>> > > __java__.cc:37: error: ISO C++ forbids declaration of ?jint? with no
>> > > type
>> > > __java__.cc:37: error: typedef ?jint? is initialized (use decltype
>> > > instead)
>> > > __java__.cc:37: error: ?JNICALL? was not declared in this scope
>> > > __java__.cc:37: error: ?JNI_GetCreatedJavaVMs_t? was not declared in
>> > > this scope
>> > > __java__.cc:39: error: ?JNIEXPORT? does not name a type
>> > > __java__.cc:41: error: expected constructor, destructor, or type
>> > > conversion before ?void?
>> > > __java__.cc:43: error: expected constructor, destructor, or type
>> > > conversion before ?void?
>> > > __java__.cc:45: error: expected constructor, destructor, or type
>> > > conversion before ?void?
>> > > __java__.cc:47: error: ?JNIEXPORT? does not name a type
>> > > __java__.cc:50: error: expected initializer before ?*? token
>> > > __java__.cc:81: error: ISO C++ forbids declaration of
>> ?JavaVMInitArgs?
>> > > with no type
>> > > __java__.cc:81: error: expected ?;? before ?*? token
>> > > __java__.cc:87: error: expected ?;? before ?void?
>> > > __java__.cc:145: error: ?JavaVMInitArgs? does not name a type
>> > > __java__.cc: In constructor ?JVMArgs::JVMArgs()?:
>> > > __java__.cc:70: error: ?vm_args? was not declared in this scope
>> > > __java__.cc:70: error: ?JNI_VERSION_1_2? was not declared in this
>> scope
>> > > __java__.cc: In member function ?void JVMArgs::clean()?:
>> > > __java__.cc:114: error: ?vm_args? was not declared in this scope
>> > > __java__.cc: In member function ?void JVMArgs::update()?:
>> > > __java__.cc:132: error: ?vm_args? was not declared in this scope
>> > > __java__.cc:133: error: ?JavaVMOption? was not declared in this
>> scope
>> > > __java__.cc:133: error: expected primary-expression before ?)? token
>> > > __java__.cc:133: error: expected ?;? before ?malloc?
>> > > __java__.cc: At global scope:
>> > > __java__.cc:149: error: ?JNIEnv? was not declared in this scope
>> > > __java__.cc:149: error: ?jni_env? was not declared in this scope
>> > > __java__.cc:149: error: ?jobject? was not declared in this scope
>> > > __java__.cc: In function ?std::string get_module_path(const
>> > > std::string&, bool)?:
>> > > __java__.cc:226: error: no match for call to ?(std::string) ()?
>> > > __java__.cc: In function ?std::string initial_class_path()?:
>> > > __java__.cc:265: error: no match for call to ?(std::string) ()?
>> > > __java__.cc: In function ?void initialize_jvm()?:
>> > > __java__.cc:281: error: ?JNIEnv? was not declared in this scope
>> > > __java__.cc:281: error: ?current_env? was not declared in this scope
>> > > __java__.cc:283: error: ?jvm? was not declared in this scope
>> > > __java__.cc:342: error: ?jsize? was not declared in this scope
>> > > __java__.cc:342: error: expected ?;? before ?nVMs?
>> > > __java__.cc:356: error: ?JNI_CreateJavaVM_t? was not declared in
>> this
>> > > scope
>> > > __java__.cc:356: error: expected ?;? before ?create_vm?
>> > > __java__.cc:357: error: ?JNI_GetCreatedJavaVMs_t? was not declared
>> in
>> > > this scope
>> > > __java__.cc:357: error: expected ?;? before ?get_vm?
>> > > __java__.cc:358: error: ?create_vm? was not declared in this scope
>> > > __java__.cc:360: error: ?get_vm? was not declared in this scope
>> > > __java__.cc:363: error: ?jvm? was not declared in this scope
>> > > __java__.cc:363: error: ?nVMs? was not declared in this scope
>> > > __java__.cc:363: error: ?get_vm? was not declared in this scope
>> > > __java__.cc:378: error: ?JNI_VERSION_1_2? was not declared in this
>> scope
>> > > __java__.cc:380: error: ?JNI_EDETACHED? was not declared in this
>> scope
>> > > __java__.cc:382: error: ?JavaVMAttachArgs? was not declared in this
>> > > scope
>> > > __java__.cc:382: error: expected ?;? before ?vm_args?
>> > > __java__.cc:383: error: ?vm_args? was not declared in this scope
>> > > __java__.cc:389: error: ?JNI_EVERSION? was not declared in this
>> scope
>> > > __java__.cc:392: error: ?JNI_OK? was not declared in this scope
>> > > __java__.cc:410: error: no match for call to ?(std::string) ()?
>> > > __java__.cc:414: error: ?class JVMArgs? has no member named
>> ?to_args?
>> > > __java__.cc:414: error: ?create_vm? was not declared in this scope
>> > > __java__.cc:414: error: ?JNI_OK? was not declared in this scope
>> > > __java__.cc: In function ?void terminate_jvm()?:
>> > > __java__.cc:434: error: ?jvm? was not declared in this scope
>> > > __java__.cc: At global scope:
>> > > __java__.cc:448: error: redefinition of ?std::string
>> jstring_to_string?
>> > > __java__.h:87: error: ?std::string jstring_to_string? previously
>> > > declared here
>> > > __java__.cc:448: error: ?JNIEnv? was not declared in this scope
>> > > __java__.cc:448: error: ?jni_env? was not declared in this scope
>> > > __java__.cc:448: error: ?jstring? was not declared in this scope
>> > > make: *** [__java__.oct] Fehler 1
>> > > error: 'make' returned the following error: make: Gehe in
>> Verzeichnis
>> > > '/tmp/oct-Vx2vGi/java-1.2.6/src'
>> > > if [ "Xamd64X" = "XX" ]; then \
>> > >                mkoctfile -DHAVE_OCTAVE_30 -v -DJAVAPKG_BUILD
>> > > -I/usr/lib/jvm/java-6-sun/include
>> > > -I/usr/lib/jvm/java-6-sun/include/linux -o __java__.oct __java__.cc
>> ; \
>> > >        else \
>> > >                mkoctfile -DHAVE_OCTAVE_30 -v -DJAVAPKG_BUILD
>> -DJAVA_ARCH=\\\"amd64\\
>> > > \" -DJAVA_HOME=\\\"/usr/lib/jvm/java-6-sun\\\"
>> > > -I/usr/lib/jvm/java-6-sun/include
>> > > -I/usr/lib/jvm/java-6-sun/include/linux -o __java__.oct __java__.cc
>> ; \
>> > >        fi
>> > > g++ -c -fPIC -I/usr/include/octave-3.0.5
>> > > -I/usr/include/octave-3.0.5/octave -O2 -g
>> > > -I/usr/lib/jvm/java-6-sun/include
>> > > -I/usr/lib/jvm/java-6-sun/include/linux -DHAVE_OCTAVE_30
>> -DJAVAPKG_BUILD
>> > > -DJAVA_ARCH=\"amd64\" -DJAVA_HOME=\"/usr/lib/jvm/java-6-sun\"
>> > > __java__.cc -o __java__.o
>> > > make: Verlasse Verzeichnis '/tmp/oct-Vx2vGi/java-1.2.6/src'
>> > > error: called from `pkg:configure_make' in
>> > > file /usr/share/octave/3.0.5/m/pkg/pkg.m near line 1248, column 2
>> > > octave:3>
>> > > octave:3>
>> > >
>> > >
>> > >
>> > > _______________________________________________
>> > > Help-octave mailing list
>> > > address@hidden
>> > > https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>> > >
>> >
>>
>>
>>
>> _______________________________________________
>> Help-octave mailing list
>> address@hidden
>> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>>
>
>
>
>
> ------------------------------
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
>
>
> End of Help-octave Digest, Vol 45, Issue 38
> *******************************************
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]