HOME >  技術情報 >  JabRef

JabRef 

JabRef のPPC専用の奴が出ていた。ありがたい。ランチャに登録するのにいちいちAppleScript を書いたりしなくてすむ。しかし、なんでかjabrefがmedline検索を出来ない。自宅では出来たのに。ここはKUINS-III内だから,一番怪しいのはproxy設定のはず。しかし、アプリケーション自体にはpreferencesがないし、ヘルプにある

Using a Proxy Server

If you need to use an http proxy server, pass the server name and port number to java at runtime. These environment settings are documented at

http://java.sun.com/j2se/1.4.2/docs/guide/net/properties.html

java -Dhttp.proxyHost="hostname" -Dhttp.proxyPort="portnumber"

というのを見たり試したりしてみたが,まず,ターミナルでそのまま上記のまじないを売っても動かないので、真面目にオプションの説明を読む。

java -D

でjavaの環境設定らしいので,どうやらスペースを入れないといかんらしい。しかし,スペースを入れてもなお

Exception in thread "main" java.lang.NoClassDefFoundError: http/proxyHost=hostname

と出て,何かが変わっている風でもない。ちなみに NoClassDefFoundError とは、java のクラスが見つからなかった,というエラーなので,システムの環境設定のためのクラスが見えていないように見える。一応medline 検索がかからないことは確認した。

さらに、MacOSXのJAVAでプロキシ設定を読ませるにはどうするか探していたら,アップルのサポートページでこんなのを見つけた。

 Q: How do I set the https proxy for applets running in the Java Plug-in?

 A: As of Java 1.4.2 on Mac OS X Panther, Java applications and applets now use HTTPS proxy settings from System Preferences. Earlier versions of Java did not use this information, but it is still possible to specify it if necessary by following the instructions below.

You can override the Java Plugin default startup parameters for Java Applets by specifying custom options in the Java Runtime Parameters field. Setting the Java Runtime Parameters "https.proxyHost" and "https.proxyPort" to the secure proxy's host name and port in the appropriate Java Plugin Settings application will set the secure proxy for applets. The syntax is the same as used with parameters to the java command line invocation. See the Java 2 Standard Edition (J2SE) documentation for a full list of command line options.

The Java Plugin Settings applications are located in the folder /Applications/Utilities/Java on a Mac OS X system.

The Advanced tab of the "Java 1.4.1 Plugin Settings" application has the Java Runtime Parameters text field for applets running in Java 1.4.1.

The Basic tab of the "Java 1.3.1 Plugin Settings" application has the Java Runtime Parameters text field for applets running in Java 1.3.1.

The listing below demonstrates the Java Runtime Parameters for a secure proxy server host named "secureproxy.company.com" using port 443.

…額面通り取ると,Java 1.4.2以降だとhttpsの情報をシステム環境設定から読む,となってるから,システムの他のアプリが動いていたら普通に動くはずだが,動かない。これはいったいどこの設定だ?しかし、/Application/Utilities/Javaの下に色々とアプリがあることがわかったので,こいつをいじってみる。例えば,Java 1.4.2 Plugin Settings の中の「Java実行時のパラメータ」欄に

-D https.proxyHost=proxy.kuins.net -D https.proxyPort=8080

と入れてみるが,結局変わらない。 SourceForgeからソースコードを取って来たりしてみるが,これもいじるのに時間がかかりそうだから却下。 java1.4.2のアップデータをダウンロードしてみるが,既に入っている,と表示されるだけで何も起こらない。しばらくはEndNoteから取り込むか…

結局,socks-proxy の設定を外したら,KUINSの中からでもきちんと読み込めることが判明。そうか。

ページトップへ戻る
-->
Copyright(c) 2013 九州大学大学院医学研究院 系統解剖学分野 All Rights Reserved.