need help | Issue in compiling Main.java | Jython
Santhosh Kumar J <[email protected]> Fri, 19 Jul 2019 20:08:05 +0000
| Newsgroups | gmane.comp.lang.jython.user |
|---|---|
| Message-ID | <DM6PR02MB5579F69195DAB9AC15327AC8A2CB0@DM6PR02MB5579.namprd02.prod.outlook.com> |
--===============6489796977558105276==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_DM6PR02MB5579F69195DAB9AC15327AC8A2CB0DM6PR02MB5579namp_"
--_000_DM6PR02MB5579F69195DAB9AC15327AC8A2CB0DM6PR02MB5579namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi Team,
I followed the steps in, https://wiki.python.org/jython/JythonFaq/Distribut=
ingJythonScripts to create a jar out of python file. but getting below erro=
r while compiling Main.java file. any help on the same will be a great help=
.
Operating system: Mac Mojave 10.14.5
Java version : Java(TM) SE Runtime Environment 12.0.1
$ javac ../Main.java -d .
../Main.java:29: error: constructor JLineConsole in class JLineConsole cann=
ot be applied to given types;
return new JLineConsole();
^
required: String
found: no arguments
reason: actual and formal argument lists differ in length
Note: ../Main.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
Thanks,
Santhosh
--_000_DM6PR02MB5579F69195DAB9AC15327AC8A2CB0DM6PR02MB5579namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<span style=3D"font-family: "Segoe UI", "Helvetica Neue"=
;, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgba=
(0, 0, 0, 0);">Hi Team,</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<span style=3D"font-family: "Segoe UI", "Helvetica Neue"=
;, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgba=
(0, 0, 0, 0);">I followed the steps in, </span><a href=3D"https://wiki=
.python.org/jython/JythonFaq/DistributingJythonScripts"><span style=3D"font=
-family: "Segoe UI", "Helvetica Neue", sans-serif; font=
-size: 11pt; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">http=
s://wiki.python.org/jython/JythonFaq/DistributingJythonScripts</span></a><s=
pan style=3D"font-family: "Segoe UI", "Helvetica Neue",=
sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgba(0=
, 0, 0, 0);"> to
create a jar out of python file. but getting below error while compiling M=
ain.java file. any help on the same will be a great help.</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<span style=3D"font-family: "segoe ui", "helvetica neue"=
;, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgba=
(0, 0, 0, 0);">Operating system: Mac Mojave 10.14.5</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<span style=3D"font-family: "segoe ui", "helvetica neue"=
;, sans-serif; font-size: 11pt; color: rgb(0, 0, 0); background-color: rgba=
(0, 0, 0, 0);">Java version : </span><span style=3D"font-variant-ligat=
ures: no-common-ligatures; background-color: rgba(0, 0, 0, 0); font-family:=
"segoe ui", "helvetica neue", sans-serif; font-size: 1=
1pt; color: rgb(0, 0, 0);">Java(TM)
SE Runtime Environment </span><span style=3D"font-family: "segoe=
ui", "helvetica neue", sans-serif; font-size: 11pt; color: =
rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">12.0.1</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;">$ javac ../Main.java -d .</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;">../Main.java:29: error: constructor JLineConsole in class JLineConsole c=
annot be applied to given types;</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-variant-li=
gatures: no-common-ligatures"><span style=3D"font-size: 10pt;">  =
;
</span></span><span style=3D"font-variant-ligatures: no-common-ligatures; f=
ont-size: 10pt;">return new JLineConsole();</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-variant-li=
gatures: no-common-ligatures"><span style=3D"font-size: 10pt;"> =
</span></span><span style=3D"font-variant-ligatures: no-common-ligatures; f=
ont-size: 10pt;">^</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-variant-li=
gatures: no-common-ligatures"><span style=3D"font-size: 10pt;">
</span></span><span style=3D"font-variant-ligatures: no-common-ligatures; f=
ont-size: 10pt;">required: String</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-variant-li=
gatures: no-common-ligatures"><span style=3D"font-size: 10pt;">
</span></span><span style=3D"font-variant-ligatures: no-common-ligatures; f=
ont-size: 10pt;">found: no arguments</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-variant-li=
gatures: no-common-ligatures"><span style=3D"font-size: 10pt;">
</span></span><span style=3D"font-variant-ligatures: no-common-ligatures; f=
ont-size: 10pt;">reason: actual and formal argument lists differ in length<=
/span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;">Note: ../Main.java uses or overrides a deprecated API.</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;">Note: Recompile with -Xlint:deprecation for details.</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;">1 error</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;"><br>
</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;"><br>
</span></p>
<p style=3D"font-variant: normal; font-weight: normal; font-stretch: normal=
; font-size: 14px; line-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 10pt=
;"><br>
</span></p>
<p style=3D"font-variant: normal; font-stretch: normal; font-size: 14px; li=
ne-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 11pt=
; font-family: "segoe ui", "helvetica neue", sans-serif=
; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Thanks,</span><=
/p>
<p style=3D"font-variant: normal; font-stretch: normal; font-size: 14px; li=
ne-height: normal; font-family: Menlo; margin: 0px;">
<span style=3D"font-variant-ligatures: no-common-ligatures; font-size: 11pt=
; font-family: "segoe ui", "helvetica neue", sans-serif=
; color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);">Santhosh</span>=
</p>
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
color: rgb(0, 0, 0);">
<br>
</div>
</body>
</html>
--_000_DM6PR02MB5579F69195DAB9AC15327AC8A2CB0DM6PR02MB5579namp_--
--===============6489796977558105276==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============6489796977558105276==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Jython-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jython-users
--===============6489796977558105276==--