Re[2]: JavaFx: webview print with scale 100%

2015-06-27 Thread Александр Свиридов
 Hi Anton,

I send all files. If you open index.html in IE and printpreview-set scale 100% 
- print , you will get 16.8 cm of div on paper.

If you you print via application I did you will get quite different size.


Пятница, 19 июня 2015, 17:03 +03:00 от Anton V. Tarasov 
anton.tara...@oracle.com:
Hi Alexander,

Could you please create and send a simple test case (fully functioning) with 
the exact URL of a page 
you're printing?

Regards,
Anotn.

On 15.06.2015 8:53, Александр Свиридов wrote:
 To print my html page I use the following code:
 PrinterJob job =PrinterJob.createPrinterJob();if(job !=null 
 job.showPrintDialog(null)){
webView.getEngine().print(job);
job.endJob();}
 The problem is that webview changes the scale of printing page. For example, 
 when I print this html page in IE with fit to size 100% I get 16.8 cm. When 
 I print in my java application I get 11.4cm. The size in html file I set in 
 pt - my width is 475pt(A4 width=595pt,so 475pt=16.8cm). How to print with 
 webview and to have 100% width and height?




Re[2]: WebView doesn't render html input elements

2015-06-25 Thread Александр Свиридов
 Hi Anton.
Thank you for answer. Please,note that this problem is not only in linux. The 
same I saw in windows XP but never in windows 7. Maybe it will help.


Среда, 24 июня 2015, 19:12 +03:00 от Anton V. Tarasov 
anton.tara...@oracle.com:
Hi Alexander,

Yes, the issue exists indeed. I've filed it as:  JDK-8129800 [WebView] 
controls not showing up initially on Linux. However, I
  don't reproduce it with your test but with a slightly different
  one.

Anyway, thanks for reporting it.

Regards,
Anton.

On 23.06.2015 20:21, Александр Свиридов wrote:
 I have very simple html code (no css, nor js) that includes five inputs with 
 type=radio (in one column) and webview in JavaFX 8 which loads this page.

The problem is the following - sometimes these radios are rendered sometimes 
not.

For example, I start application - webview loads page, however there is empty 
space where these radio must be (these inputs are not rendered,they are not 
seen). But, when I move mouse over the area where these radios must be, they 
appear.

I see this problem in Linux - Centos, Ubuntu and Windows XP. I've not seen this 
problem in Win7.

Here is the code I tested. All the program consists of two classes:

public class JavaFXApplication extends Application {
private int count=0;
@Override
public void start(Stage primaryStage) {
final Button printButton = new Button(Print);
final WebView webPage = new WebView();
final WebEngine webEngine = webPage.getEngine();
printButton.setOnAction(new EventHandlerActionEvent() {
@Override public void handle(ActionEvent e) {
String html=html dir=\ltr\head\n +
 meta http-equiv=\content-type\ content=\text/html; charset=utf-8\\n +
/head\n +
body contenteditable=\true\\n +
 \n +
 \n +
 \n +
\n +
\n +
p align=\justify\ style=\text-align: left; margin-bottom: 0in; 
line-height: 150%;margin-bottom: 0in; line-height: 100%\\n +
font style=\font-size: 14pt\ face=\serif\Стали бы Вы на пути\n +
грабителя грузового вагона?/font/pp align=\justify\ style=\text-align: 
left; margin-bottom: 0in; line-height: 150%;\font style=\font-size: 14pt\ 
face=\serif\Выберите ответ:/font/p\n +
\n +
form name='mainForm' style='margin-top:15px;'\n +
input type='radio' name='answer' value='641' font size='4'Полностью 
согласен, полное «Да»/fontbr\n +
input type='radio' name='answer' value='642' font size='4'Больше «Да», чем 
«Нет»/fontbr\n +
input type='radio' name='answer' value='643' font size='4'Ни «Да», ни 
«Нет», нечто среднее/fontbr\n +
input type='radio' name='answer' value='644' font size='4'Больше «Нет», 
чем «Да»/fontbr\n +
input type='radio' name='answer' value='645' font size='4'Полное 
«Нет»/fontbr\n +
/formscript type=\text/javascript\\n +
function getAnswerId(){\n +
 var elements = document.getElementsByName(\answer\);\n +
 for (var i=0, len=elements.length; ilen; ++i) {\n +
 if (elements[i].checked) return elements[i].value;\n +
 }\n +
 return null;\n +
}\n +
/script/body/html;
html+=count;
count++;
webEngine.loadContent(html);
}
});
HBox hbox = new HBox();
hbox.getChildren().addAll(printButton);
BorderPane borderPane = new BorderPane();
borderPane.setTop(hbox);
borderPane.setCenter(webPage);
Scene scene = new Scene(borderPane, 300, 250);
primaryStage.setTitle(WebView radio bugs);
primaryStage.setScene(scene);
 primaryStage.show();
}
} 

And the second class

public class JavaApplication {
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
Application.launch(JavaFXApplication.class, args);
}
}

After that I click Print button. After every clicking count++. Compiled openjdk 
1.8.45. Tested winxp oracle 1.8.40, centos71,ubuntu 12 oracle 1.8.60. The image 
from xp. 29 clicks after that no radios. Moved mouse over 1,3,5: . The result 
is on the image I attached. Please, answer.






WebView doesn't render html input elements

2015-06-23 Thread Александр Свиридов
 I have very simple html code (no css, nor js) that includes five inputs with 
type=radio (in one column) and webview in JavaFX 8 which loads this page.

The problem is the following - sometimes these radios are rendered sometimes 
not.

For example, I start application - webview loads page, however there is empty 
space where these radio must be (these inputs are not rendered,they are not 
seen). But, when I move mouse over the area where these radios must be, they 
appear.

I see this problem in Linux - Centos, Ubuntu and Windows XP. I've not seen this 
problem in Win7.

Here is the code I tested. All the program consists of two classes:

public class JavaFXApplication extends Application {
private int count=0;
@Override
public void start(Stage primaryStage) {
final Button printButton = new Button(Print);
final WebView webPage = new WebView();
final WebEngine webEngine = webPage.getEngine();
printButton.setOnAction(new EventHandlerActionEvent() {
@Override public void handle(ActionEvent e) {
String html=html dir=\ltr\head\n +
 meta http-equiv=\content-type\ content=\text/html; charset=utf-8\\n +
/head\n +
body contenteditable=\true\\n +
 \n +
 \n +
 \n +
\n +
\n +
p align=\justify\ style=\text-align: left; margin-bottom: 0in; 
line-height: 150%;margin-bottom: 0in; line-height: 100%\\n +
font style=\font-size: 14pt\ face=\serif\Стали бы Вы на пути\n +
грабителя грузового вагона?/font/pp align=\justify\ style=\text-align: 
left; margin-bottom: 0in; line-height: 150%;\font style=\font-size: 14pt\ 
face=\serif\Выберите ответ:/font/p\n +
\n +
form name='mainForm' style='margin-top:15px;'\n +
input type='radio' name='answer' value='641' font size='4'Полностью 
согласен, полное «Да»/fontbr\n +
input type='radio' name='answer' value='642' font size='4'Больше «Да», чем 
«Нет»/fontbr\n +
input type='radio' name='answer' value='643' font size='4'Ни «Да», ни 
«Нет», нечто среднее/fontbr\n +
input type='radio' name='answer' value='644' font size='4'Больше «Нет», 
чем «Да»/fontbr\n +
input type='radio' name='answer' value='645' font size='4'Полное 
«Нет»/fontbr\n +
/formscript type=\text/javascript\\n +
function getAnswerId(){\n +
 var elements = document.getElementsByName(\answer\);\n +
 for (var i=0, len=elements.length; ilen; ++i) {\n +
 if (elements[i].checked) return elements[i].value;\n +
 }\n +
 return null;\n +
}\n +
/script/body/html;
html+=count;
count++;
webEngine.loadContent(html);
}
});
HBox hbox = new HBox();
hbox.getChildren().addAll(printButton);
BorderPane borderPane = new BorderPane();
borderPane.setTop(hbox);
borderPane.setCenter(webPage);
Scene scene = new Scene(borderPane, 300, 250);
primaryStage.setTitle(WebView radio bugs);
primaryStage.setScene(scene);
 primaryStage.show();
}
} 

And the second class

public class JavaApplication {
/**
 * @param args the command line arguments
 */
public static void main(String[] args) {
Application.launch(JavaFXApplication.class, args);
}
}

After that I click Print button. After every clicking count++. Compiled openjdk 
1.8.45. Tested winxp oracle 1.8.40, centos71,ubuntu 12 oracle 1.8.60. The image 
from xp. 29 clicks after that no radios. Moved mouse over 1,3,5: . The result 
is on the image I attached. Please, answer.


-- 
Александр Свиридов

WebView doesn't render html input elements

2015-06-16 Thread Александр Свиридов
 I have very simple html code that includes 5 inputs with type=radio (in one 
column) and webview in javafx8 which loads this page. The problem is the 
following - sometimes these radios are rendered sometimes not. For example, I 
start application - webview loads page, however there is empty space where 
these radio must be. But, when I move mouse at the area where these radios must 
be, they appear. I see this problem in linux - centos,ubuntu and windows xp. 
I've not seen this problem in Win7. How to fix it? 


Re[2]: WebView doesn't render html input elements

2015-06-16 Thread Александр Свиридов
 Thank you for your answer. No, I have only 5(five!) inputs on page. And I use 
oracle java 8.60. 


Вторник, 16 июня 2015, 14:11 -07:00 от Kevin Rushforth 
kevin.rushfo...@oracle.com:
Do you have more than 100 total controls visible in your web page? If 
so, this is probably  https://bugs.openjdk.java.net/browse/JDK-8093303
which was just fixed in 8u60.

-- Kevin


Александр Свиридов wrote:
  I have very simple html code that includes 5 inputs with type=radio (in 
 one column) and webview in javafx8 which loads this page. The problem is the 
 following - sometimes these radios are rendered sometimes not. For example, 
 I start application - webview loads page, however there is empty space where 
 these radio must be. But, when I move mouse at the area where these radios 
 must be, they appear. I see this problem in linux - centos,ubuntu and 
 windows xp. I've not seen this problem in Win7. How to fix it? 
 



JavaFx: printer dialog is shown behind main window(stage)

2015-06-14 Thread Александр Свиридов
I use java8. I have a main window (stage) and when I click at button print 
the following code is executed:
PrinterJob job =PrinterJob.createPrinterJob();if(job !=null 
job.showPrintDialog(null)){
  webView.getEngine().print(job);
 job.endJob();}
The printer dialog appears. But! it appears behind the main window but not in 
front of main window! This strange behaviour happens only when dialog appears 
the first time. The second and other times it's in front of the main window. 
How to fix it?


-- 
Александр Свиридов

JavaFx: webview print with scale 100%

2015-06-14 Thread Александр Свиридов
To print my html page I use the following code:
PrinterJob job =PrinterJob.createPrinterJob();if(job !=null 
job.showPrintDialog(null)){
  webView.getEngine().print(job);
  job.endJob();}
The problem is that webview changes the scale of printing page. For example, 
when I print this html page in IE with fit to size 100% I get 16.8 cm. When I 
print in my java application I get 11.4cm. The size in html file I set in pt - 
my width is 475pt(A4 width=595pt,so 475pt=16.8cm). How to print with webview 
and to have 100% width and height?

JavaFx: can data binding (textfield) be used in production mode?

2015-06-13 Thread Александр Свиридов
I use java 8.0.45. I have implemented my first javafx application (very simple) 
with data binding. However, biding from user input- pojo seems to work with 
bugs. I've checked about 200 times. I entered new values in text fields and 
after that I checked model values. The same code, the same my behaviour. 
Sometimes everything works fine (in most cases - about 80-90%) sometimes model 
value!=textfield value. I've noticed the following. Data binding for some 
certain text field works,works and then at some point of time that binding 
stops working and all new values for this certain textfield are not passed to 
model. Nor exceptions. Nor any warnings. Nothing. Just binding doesn't work.
I have 4 textfiled which are created via fxml. Two for string model type. One 
for integer. One for bigdecimal. The problem happens to all these 
fields(sometimes to one, sometimes to several). As my number fields can have 
null values, I use for example PropertyObject but not IntegerProperty (people 
from openjfx advised so). 
So is this JavaFx bug or what? P.S. I use felix osgi, weld cdi, and pax - I 
don't know if it matters...
My code is the following:

DTO - POJO Model
public class Task {

private String name;

private Integer order;

private BigDecimal weight;

private String comment;

private final PropertyChangeSupport propertyChangeSupport;

public Task() {
this.propertyChangeSupport = new PropertyChangeSupport(this);
}

public String getName() {
return name;
}

public void setName(String name) {
String pv = this.name ;
this.name = name;
propertyChangeSupport.firePropertyChange(name, pv, name);
}

public Integer getOrder() {
return order;
}

public void setOrder(Integer order) {
Integer pv = this.order;
this.order = order;
propertyChangeSupport.firePropertyChange(order, pv, this.order);
}

public BigDecimal getWeight() {
return weight;
}

public void setWeight(BigDecimal weight) {
BigDecimal pv = this.weight;
this.weight = weight;
propertyChangeSupport.firePropertyChange(weight, pv, weight);
}

public String getComment() {
return comment;
}

public void setComment(String comment) {
String pv = this.comment;
this.comment = comment;
propertyChangeSupport.firePropertyChange(comment, pv, this.comment);
}

public void addPropertyChangeListener(PropertyChangeListener listener) {
propertyChangeSupport.addPropertyChangeListener(listener);
}

}
Adapter 
public class TaskAdapter {

private StringProperty nameProperty;

private ObjectPropertyInteger orderProperty;

private ObjectPropertyBigDecimal weightProperty;

private StringProperty commentProperty;

  public TaskAdapter(Task task) {
try {
nameProperty=new 
JavaBeanStringPropertyBuilder().bean(task).name(name).build();
orderProperty=new 
JavaBeanObjectPropertyBuilderInteger().bean(task).name(order).build();
weightProperty=new 
JavaBeanObjectPropertyBuilderBigDecimal().bean(task).name(weight).build();
commentProperty=new 
JavaBeanStringPropertyBuilder().bean(task).name(comment).build();
} catch (NoSuchMethodException ex) {
Logger.getLogger(this.getClass().getName()).log(Level.SEVERE, null, 
ex);
}
}

public StringProperty getNameProperty() {
return nameProperty;
}

public ObjectPropertyInteger getOrderProperty() {
return orderProperty;
}

public ObjectPropertyBigDecimal getWeightProperty() {
return weightProperty;
}

public StringProperty getCommentProperty() {
return commentProperty;
}

}
BigDecimal Converter
public class SimpleBigDecimalStringConverter extends 
StringConverterBigDecimal{

@Override
public String toString(BigDecimal i) {
if (i == null) {
return  ;
} else {
return i.toString();
}
}

@Override
public BigDecimal fromString(String string) {
if (string.trim().length() == 0) {
return null ;
} else {
try {
return new BigDecimal(string);
} catch (NumberFormatException nfe) {
return null ;
} 
}
}
}
IntegerConverter 
public class SimpleIntegerStringConverter extends StringConverterInteger{

@Override
public String toString(Integer i) {
if (i == null) {
return  ;
} else {
return i.toString();
}
}

@Override
public Integer fromString(String string) {
if (string.trim().length() == 0) {
return null ;
} else {
try {
return Integer.valueOf(string);
} catch (NumberFormatException nfe) {
return null ;
} 
}
}
}

JavaFx: tab rounded corners - very strange behaviour

2015-06-12 Thread Александр Свиридов
 I want to make tabs with rounded corners. And I have the following css code:

. tab  {
-fx-border-radius:10 10 0 0;
-fx-background-radius:10 10 0 0;
}

.tab:selected .focus-indicator {
-fx-border-radius:10 10 0 0,10 10 00;
} However, javafx adds some extra corners to tabs. Unfortunately I can't send a 
picture, however this question I asked at stackoverflow -   
http://stackoverflow.com/questions/30690918/javafx-tab-rounded-corners   and 
there I provided all the pictures. Is this a bug? if not, how to fix it?

-- 
Александр Свиридов

JavaFx: WebView perfomance in Window 7

2015-06-04 Thread Александр Свиридов
 I have program and a webview which loads from http://lenta.ru site. I checked 
my program on centos 7.1 (64 bit, oracle jre 1.8.60) and on windows 7 (32 bit, 
oracle jre 1.8.60). There is a very very significant difference between them. 
On centos webview works a little bit slower then in firefox. However on win7 in 
comparison with centos perfomance is about 5-10 times worse. For example I 
can't scroll faster - I have to wait until the part of the page is rendered. 
How can it be solved (if it can)?


-- 
Александр Свиридов

StageStyle.UTILITY doesn't always work with stage.setAlwaysOnTop(true)

2015-05-25 Thread Александр Свиридов
 I have application which consits only of one stage:
stage.initStyle(StageStyle.UTILITY);
stage.setAlwaysOnTop(true);

And I use oracle java 1.8.60

And I start my application 5 times. 2 times the window is on top of others. 3 
times it's not of top of others. There is a bug in javafx. My OS - centos 7.1

-- 
Александр Свиридов

JavaFX: WebView/WebEngine doesn't work with OSGI

2015-05-04 Thread Александр Свиридов
 I have two boxes - Centos 7.1 64 and Windows 7 32. Both of them have jre 
8.0.60.

And I have two javafx projects - osgi and not osgi.

Not OSGI:
public class MainApp extends Application {
    @Override
    public void start(Stage stage) throws Exception {
    WebView browser = new WebView();
    WebEngine webEngine = browser.getEngine();
    webEngine.load(http://google.com;);
    Scene scene= new Scene(browser,700,500);
    stage.setTitle(JavaFX and Maven);
    stage.setScene(scene);
    stage.show();
    }

    public static void main(String[] args) {
    launch(args);
    }
}
This project work at both boxes - one window is created and inside I see google 
site. Now, OSGI project: I have two classes - activator and program view:

public class Activator implements BundleActivator {
    public void start(BundleContext context) throws Exception {
 System.out.println(Hello I am Activator);
    javafx.application.Application.launch(MyProgramView.class);
    }

    public void stop(BundleContext context) throws Exception {
    }
}

public class MyProgramView extends Application {
    @Override
    public void start(Stage primaryStage) throws IOException {
    WebView browser = new WebView();
    WebEngine webEngine = browser.getEngine();
    webEngine.load(http://mail.ru;);
    Scene scene= new Scene(browser,700,500);
    primaryStage.setTitle(JavaFX and Maven);
    primaryStage.setScene(scene);
    primaryStage.show();
    }
}

This is OUTPUT:
Hello I am Activator
Prism pipeline init order: es2 sw 
Using java-based Pisces rasterizer
Using dirty region optimizations
Not using texture mask for primitives
Not forcing power of 2 sizes for textures
Using hardware CLAMP_TO_ZERO mode
Opting in for HiDPI pixel scaling
Prism pipeline name = com.sun.prism.es2.ES2Pipeline
Loading ES2 native library ... prism_es2
    succeeded.
GLFactory using com.sun.prism.es2.X11GLFactory
(X) Got class = class com.sun.prism.es2.ES2Pipeline
Initialized prism pipeline: com.sun.prism.es2.ES2Pipeline
Maximum supported texture size: 8192
Maximum texture size clamped to 4096
Non power of two texture support = true
Maximum number of vertex attributes = 16
Maximum number of uniform vertex components = 16384
Maximum number of uniform fragment components = 16384
Maximum number of varying components = 60
Maximum number of texture units usable in a vertex shader = 16
Maximum number of texture units usable in a fragment shader = 16
Graphics Vendor: nouveau
   Renderer: Gallium 0.4 on NVAA
    Version: 3.0 Mesa 10.2.7
 vsync: true vpipe: true
ES2ResourceFactory: Prism - createStockShader: Solid_TextureRGB.frag
ES2ResourceFactory: Prism - createStockShader: FillPgram_Color.frag

A window is created, its title = JavaFX and Maven but inside nothing - I mean 
a empty white area. I checked at both boxes. What's wrong and how to solve it?


Errors while building openjfx from sources

2015-04-21 Thread Александр Свиридов
 I am trying to build openjfx from sources - centos 6.4. 64 openjdk8 (build 
25.60-b11, mixed mode), I run 

/gradle-1.8/bin/gradle --info --debug

and this is what I get:
10:11:09.184 [ERROR] [system.err] cc1plus: warnings being treated as errors
10:11:09.186 [ERROR] [system.err] 
/home/PE/Temp/rt/modules/graphics/src/main/native-glass/gtk/glass_general.cpp:114:
 error: expected [error|warning|ignored] after '#pragma GCC diagnostic'
10:11:09.187 [ERROR] [system.err] 
/home/PE/Temp/rt/modules/graphics/src/main/native-glass/gtk/glass_general.cpp:132:
 error: expected [error|warning|ignored] after '#pragma GCC diagnostic'
10:11:09.187 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing 
state to: FAILED
10:11:09.188 [INFO] [org.gradle.process.internal.DefaultExecHandle] Process 
'command 'gcc'' finished with exit value 1 (state: FAILED)
10:11:09.195 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] 
Finished configuring with level: DEBUG, configurers: 
[org.gradle.logging.internal.OutputEventRenderer@675d3402, 
org.gradle.logging.internal.logback.LogbackLoggingConfigurer@51565ec2, 
org.gradle.logging.internal.JavaUtilLoggingConfigurer@482f8f11]
10:11:09.195 [DEBUG] 
[org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] 
Finished executing task ':graphics:ccLinuxGlass'
10:11:09.195 [LIFECYCLE] [org.gradle.TaskExecutionLogger] 
:graphics:ccLinuxGlass FAILED
10:11:09.196 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] 
:graphics:ccLinuxGlass (Thread[main,5,main]) completed. Took 1.1 secs.
10:11:09.196 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] 
Task worker [Thread[main,5,main]] finished, busy: 5.129 secs, idle: 0.044 secs
10:11:09.212 [ERROR] [org.gradle.BuildExceptionReporter] 
10:11:09.216 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed 
with an exception.
10:11:09.217 [ERROR] [org.gradle.BuildExceptionReporter] 
10:11:09.220 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:11:09.221 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for 
task ':graphics:ccLinuxGlass'.
10:11:09.222 [ERROR] [org.gradle.BuildExceptionReporter]  Could not call 
NativeCompileTask.compile() on task ':graphics:ccLinuxGlass'
10:11:09.225 [ERROR] [org.gradle.BuildExceptionReporter] 
10:11:09.226 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
10:11:09.231 [ERROR] [org.gradle.BuildExceptionReporter] 
org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
':graphics:ccLinuxGlass'.
10:11:09.232 [ERROR] [org.gradle.BuildExceptionReporter]     at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

how to solve it?

Re: openjfx-dev Digest, Vol 41, Issue 30

2015-04-21 Thread Александр Свиридов
 I am trying to build openjfx from sources - centos 6.4. 64 openjdk8 (build 
25.60-b11, mixed mode), I run 

/gradle-1.8/bin/gradle --info --debug

and this is what I get:
10:11:09.184 [ERROR] [system.err] cc1plus: warnings being treated as errors
10:11:09.186 [ERROR] [system.err] 
/home/PE/Temp/rt/modules/graphics/src/main/native-glass/gtk/glass_general.cpp:114:
 error: expected [error|warning|ignored] after '#pragma GCC diagnostic'
10:11:09.187 [ERROR] [system.err] 
/home/PE/Temp/rt/modules/graphics/src/main/native-glass/gtk/glass_general.cpp:132:
 error: expected [error|warning|ignored] after '#pragma GCC diagnostic'
10:11:09.187 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Changing 
state to: FAILED
10:11:09.188 [INFO] [org.gradle.process.internal.DefaultExecHandle] Process 
'command 'gcc'' finished with exit value 1 (state: FAILED)
10:11:09.195 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] 
Finished configuring with level: DEBUG, configurers: 
[org.gradle.logging.internal.OutputEventRenderer@675d3402, 
org.gradle.logging.internal.logback.LogbackLoggingConfigurer@51565ec2, 
org.gradle.logging.internal.JavaUtilLoggingConfigurer@482f8f11]
10:11:09.195 [DEBUG] 
[org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] 
Finished executing task ':graphics:ccLinuxGlass'
10:11:09.195 [LIFECYCLE] [org.gradle.TaskExecutionLogger] 
:graphics:ccLinuxGlass FAILED
10:11:09.196 [INFO] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] 
:graphics:ccLinuxGlass (Thread[main,5,main]) completed. Took 1.1 secs.
10:11:09.196 [DEBUG] [org.gradle.execution.taskgraph.AbstractTaskPlanExecutor] 
Task worker [Thread[main,5,main]] finished, busy: 5.129 secs, idle: 0.044 secs
10:11:09.212 [ERROR] [org.gradle.BuildExceptionReporter] 
10:11:09.216 [ERROR] [org.gradle.BuildExceptionReporter] FAILURE: Build failed 
with an exception.
10:11:09.217 [ERROR] [org.gradle.BuildExceptionReporter] 
10:11:09.220 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:11:09.221 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for 
task ':graphics:ccLinuxGlass'.
10:11:09.222 [ERROR] [org.gradle.BuildExceptionReporter]  Could not call 
NativeCompileTask.compile() on task ':graphics:ccLinuxGlass'
10:11:09.225 [ERROR] [org.gradle.BuildExceptionReporter] 
10:11:09.226 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
10:11:09.231 [ERROR] [org.gradle.BuildExceptionReporter] 
org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
':graphics:ccLinuxGlass'.
10:11:09.232 [ERROR] [org.gradle.BuildExceptionReporter]     at 
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)

how to solve it?






JavaFX: Can't load library: libjfxwebkit.so

2015-04-21 Thread Александр Свиридов

I use centos 6.4 + openjdk8 (build 25.40-b18, mixed mode) and openjfx (I build 
it from today sources).
I have 64 box. And I can't use the html components (all other components seem 
to work normally) - webview,webengine,htmleditor. When I try to use them I get:
Caused by: java.lang.UnsatisfiedLinkError:Can't load 
library:/usr/java/j2sdk-image/jre/lib/amd64/libjfxwebkit.so
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1083)
at 
com.sun.glass.utils.NativeLibLoader.loadLibraryFullPath(NativeLibLoader.java:201)
at 
com.sun.glass.utils.NativeLibLoader.loadLibraryInternal(NativeLibLoader.java:94)
at com.sun.glass.utils.NativeLibLoader.loadLibrary(NativeLibLoader.java:39)
at com.sun.webkit.WebPage.lambda$static$38(WebPage.java:127)
at com.sun.webkit.WebPage$$Lambda$70/1840187125.run(UnknownSource)
at java.security.AccessController.doPrivileged(NativeMethod)
at com.sun.webkit.WebPage.clinit(WebPage.java:126)
at javafx.scene.web.WebEngine.init(WebEngine.java:824)
I tried to find this lib on my PC but didn't find. I tried to find in repos:
yum provides libjfxwebkit.so
but also didn't find. What should I do?